TheOne
07-02-2011, 20:40
Hi,
I'm new to this so please bear with me. And I hope it is in the right forum.
I'm trying to load an array with the 50 states abbreviation to search for a valid state. Does thinBasic have a limit to the number of columns you can input data/code before it doesn't recognizes it? That's what I think is happening. So I tried to put it into several lines but that didn't work either. Could you provide any insight or help? Thanks.
Dim aStates(50) 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"
Noticed too that it change IN to In and OR as Or. Wouldn't leave it in caps.
Thanks again.
I'm new to this so please bear with me. And I hope it is in the right forum.
I'm trying to load an array with the 50 states abbreviation to search for a valid state. Does thinBasic have a limit to the number of columns you can input data/code before it doesn't recognizes it? That's what I think is happening. So I tried to put it into several lines but that didn't work either. Could you provide any insight or help? Thanks.
Dim aStates(50) 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"
Noticed too that it change IN to In and OR as Or. Wouldn't leave it in caps.
Thanks again.