However, the last line of the following code raises a syntax error (tested with PB 6.00 beta 9 (x64) on Windows):
Code: Select all
NewList a.i()
AddElement(a()) : a() = 3
Debug a()
Debug TypeOf(a())
The same problem exists with arrays and maps.
Code: Select all
NewList a.i()
AddElement(a()) : a() = 3
Debug a()
Debug TypeOf(a())
There is nothing written about lists.TypeOf can be used to find out the type of a variable, or a structure field.
I see. Thank you!infratec wrote:It can return #PB_List, if the field in a structure is a list.