M
MattB
I have a list of states and abbreviations that I want to be able to pull
into a 2d array to bind to a control. The list looks like this:
AL:Alabama,AK:Alaska,AZ:Arizona,...
So If I take the starting and split it on the comma, it gives me a 1d
array with XX:Name in each element. Is there any easy way (like split)
to do this into a 2d array, so I end up with:
aStates(0,0)="AL"
aStates(0,1)="Alabama"
and so on...
I know a number of ways I could code this up to make it work but I'm
wondering if there's a nice quick n' dirty way using split or something
similar. Thanks!
Matt
into a 2d array to bind to a control. The list looks like this:
AL:Alabama,AK:Alaska,AZ:Arizona,...
So If I take the starting and split it on the comma, it gives me a 1d
array with XX:Name in each element. Is there any easy way (like split)
to do this into a 2d array, so I end up with:
aStates(0,0)="AL"
aStates(0,1)="Alabama"
and so on...
I know a number of ways I could code this up to make it work but I'm
wondering if there's a nice quick n' dirty way using split or something
similar. Thanks!
Matt