DATA statements?

Previous topic - Next topic

Moru

And the error message is? :-)

Minion


Code (glbasic) Select


(944) error : syntax error


MrTAToad

Try this :

Code (glbasic) Select
STARTDATA dataitems:
DATA 1,"PLAY    ",-1,0,0
DATA 1,"OPTIONS ", 2,0,0
DATA 1,"QUIT    ",-2,0,0
DATA 2,"LEVEL   ", 3,0,0
DATA 2,"VOLUME  ", 4,0,0
DATA 2,"BACKDROP", 5,0,0
DATA 2,"BACK    ", 1,0,0
DATA 3,"EASY    ", 2,1,0
DATA 3,"MEDIUM  ", 2,1,1
DATA 3, "HARD    ", 2,1,2
DATA 4,"100%    ", 2,2,100
DATA 4," 75%    ", 2,2,75
DATA 4," 50%    ", 2,2,50
DATA 4," 25%    ", 2,2,25
DATA 4,"  0%    ", 2,2,0
DATA 5,"ON      ", 2,3,0
DATA 5,"OFF     ", 2,3,1
ENDDATA


You had missed a comma :)

Minion

MrTAToad, many thanks. Thats the badger. Sometimes you just need a fresh pair of eyes looking at things to notice the blindingly obvious ! Since it was throwing up the error at the STARTDATA statement I never looked any further down my list to see what was wrong !

ampos

Oh, the old good days, copying endless lists of datas from magazines on the c64, with "out of data" when you miss a comma, or change it with a dot... So hard to find...

:)