Hi TheOne,
welcome to the forums!
The root of your trouble is in fact you made one typo - instead of writing "GA" you wrote "GA'.
You also list 51 entries, but dim array just for 50.
After correcting these two, everything works as expected:
Maybe it will make you happy that you don't have to use Array Assign at all and you can do directly:
Dim aStates(51) As String
Array Assign aStates(1) = "AL", "AK", "AZ", "AR", "CA", "CO", "CT", "DE", "DC", "FL", "GA", "HI", "ID", "IL", "IN", "IA", "KS", "KY", "LA", "ME", "MD", "MA", "MI", "MN", "MS", "MO", "MT", "NE", "NV", "NH", "NJ", "NM", "NY", "NC", "ND", "OH", "OK", "OR", "PA", "RI", "SC", "SD", "TN", "TX", "UT", "VT", "VA", "WA", "WV", "WI", "WY"Note the implicit line continuation - this feature works from ThinBASIC 1.8.6.0 upDim aStates(51) As String
aStates(1) = "AL", "AK", "AZ", "AR", "CA", "CO", "CT", "DE", "DC", "FL",
"GA", "HI", "ID", "IL", "IN", "IA", "KS", "KY", "LA", "ME",
"MD", "MA", "MI", "MN", "MS", "MO", "MT", "NE", "NV", "NH",
"NJ", "NM", "NY", "NC", "ND", "OH", "OK", "OR", "PA", "RI",
"SC", "SD", "TN", "TX", "UT", "VT", "VA", "WA", "WV", "WI", "WY"
Petr
Bookmarks