View Single Post
Old 13 January 2019, 11:31   #4
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 7,000
Quote:
Originally Posted by solarmon View Post
However, then this means I cannot use this method to check if a non integer 'index' exists.
Yes, you can. Just be aware that the index is case sensitive.

instead of

test.blue = 1

use

x = "blue"; text.x = 1

You can even do

blue = "blue"; test.blue = 1


Or in your new example you could initialise the index like this:

Code:
test. = 0
do i=1 to colour.0
   colour = colour.i
   test.colour = 1
end
thomas is offline  
 
Page generated in 0.08042 seconds with 11 queries