Hi all,
can anyone explain how I have to use custom Types with Arrays?
I could manage to define my own Type, make variables of it and even add them to an Array.
But I can't figure out how to search in the Array for one of the types. It's not that I can't find anything (getting -1 as result), but I get an error, that I can't explain.
Type _mtxPoint
x as Integer
y as Integer
c as String
alreadyChecked as Integer
EndType
startPoint as _mtxPoint
startPoint .x = 2
startPoint .y = 2
startPoint .c = "X"
startPoint .alreadyChecked = TRUE
HITS as _mtxPoint[] // Array of custom Types
HITS.insertsorted(startPoint )
HITS.sort()
do
print(HITS.find(startPoint)) // error: Unexpected token "find", array must be followed by a complete set of dimensions or one of .length, .swap, .reverse, .insert, .remove, .sort, .insertsorted
Sync()
loop
Thank you!
Cheers,
> not a native speaker | AppGameKit Classic T1+T2 | AppGameKit Studio T1 + T2