How to I get the text stored in an array? I want to print it to screen. I can get the index no problem but I have no idea how to retrieve the text stored at that index.
One example from the docs is this. However it returns the index and not the actual text stored. It prints 3 to screen not the name stored there.
Any help please?
Thank you
names as string [ 5 ] = [ "", "lee", "rick", "paul", "dave", "adam" ]
names.sort ( )
do
for i = 1 to names.length
print ( names [ i ] )
next i
print ( "" )
index = names.find ( "lee" )
print ( "lee is at index = " + str ( index ) )
sync ( )
loop