09-12-2017 09:41 PM
Hello:
I'm just start to use TS2016 not sure what i describe here is an issue.
I create a series of array of containers like below picture:
But when I program in expression of editor, the input hint shows like this:
it's not the element level I want to input, please help to check, thanks!
09-13-2017 01:28 AM
So you have a variable which is an 1D array of 3 elements, each element is a 1D array of containers and each of these elements is also a 1D array of containers. How does it end?
for example what does container Num hold? At the moment your last container has no fields.
If Mode was an array of containers "PS","SG","LD" and the first field in "PS" to be a numeric type called "Num"
then I would expect the expression for Mode to be
Locals.Mode["PS"].Num = 5
What are you expecting?
09-14-2017 01:04 AM
Yes, Farmer. All the elements in the hierarchy are 1D array of containers except the last one's elements are set to number or string.
In the expression of the picture, I expected it should display the 1st element of current array like a common 1D array.
eg. when I type [ after Mode["PS"]["Num"], in the little hint window it should recommend the element of array{Num}, but not the element of main array{Mode} as in the picture.
Thanks for your reply!