In the mid-'90s I wrote in Quick Basic some lab simulations for science classes I was teaching. I want to rewrite them in VB and thought that I could just paste old QB code into VB... not so, of course.
I want to know how to read data from within the program into an array. Below is a sample of the old QBasic code I'm trying to duplicate.
DATA 32
'DATA is Name, kingdom, p for photosynthesis, s for single celled
DATA Smeglitious nobilis,monera,,s
DATA Computicus garianus,monera,,s
DATA Fastidyus hassica,monera,p,s
DATA Diminutia scotia,protista,p,s
DATA Strongellica sphinctius,protista,,s
DIM org$(5, 4)
ReadOrganismData:
READ d
FOR organisms = 1 TO d
FOR organisminfo = 1 TO 4
READ org$(organisms, organisminfo)
NEXT organisminfo
NEXT organisms
orgName = 1
Kingdom = 2
photo = 3
singleCelled = 4