HI ALL
I am currently reading that topic in my krylers book and it confuses me.
It kinda not explain what data values are used for?
Basicly far as I understand u can create a data value and load it into an Array to hold the data information and then be used later on?
what confuses me is why do this? Why not just type all the data in an ARRAy?
Heres the code i came up with from the book yet its confusing me.
Can someone explain to me plz in a noobie form way.
Cheers
waz
I am currently reading that topic in my krylers book and it confuses me.
It kinda not explain what data values are used for?
Basicly far as I understand u can create a data value and load it into an Array to hold the data information and then be used later on?
what confuses me is why do this? Why not just type all the data in an ARRAy?
Heres the code i came up with from the book yet its confusing me.
Can someone explain to me plz in a noobie form way.
Cheers
waz
Graphics 640,480 ; Dim our namearray Dim NameArray$(4,4) ;Read in the data ;go to the front of the data lines Restore NameData ;Loop from 1 to 4 rows For NameType% = 1 To 4 ;loop from 1 to 4 columns For Names% = 1 To 4 Read NameArray$(NameType%,Names%) Next Next ;Print out the data ;Set up the vertical control varible Texty% = 0 ;Loop from 1 to 4 rows For NameType% = 1 To 4 ;Loop from 1 to 4 columns For Names% = 1 To 4 Text 0,Texty, NameArray$(NameType%,Names%) Texty = Texty + 16 Next Next WaitKey() End .NameData Data "John","Joe","Mark","George" Data "Sally","Betty","Lorelei","Anne" Data "Fido","Spot","Killer","Tank" Data "Millennium Hawk","Tea Fight","Zap-Wing","Dead Star"