I am working on a program to map city-coordinates on a Mercator-projection map.
It should become a game on topography
I have a lot of files with DATA lines containing City-name, and its coordinates and size
e.g. The file 'major cities Russia.txt' starts with
citiesRussia:
DATA 300 ' number of cities
' city latitude longitude size
DATA "Moskva",55.750,37.620,11102300
DATA "Sankt-peterburg",59.930,30.320,4079400
……
There are also files for 'World' with a lot of small countries, a file 'USA' etc.
I would like to collect all the labels in an array e.g.
Label$(1)="citiesRussia"
Then I can program :
RESTORE TO Label$(n)
instead of what I am programming now:
ON n GOTO russia,usa,france,…
russia:
RESTORE TO citiesRussia
GOTO ReadData
usa:
RESTORE TO citiesUSA
GOTO ReadData
france:
RESTORE TO citiesFrance
GOTO ReadData
……
……
ReadData:
READ cities ' number of cities
FOR i=1 to cities
FOR j=1 TO 4
READ city$(i,j)
……
……
So a label-variable would make it a lot easier.