Hello again.
Well I finished another exercise from the Beginner's guide to dark basic book, and I have gotten a syntax error when I go to compile. When I look at it, it looks correct so if someone could look at it and tell me where the error is occurring, that would be great. Thanks!
Rem Project: SetControlDevice Program
Rem Created: Wednesday, February 29, 2012
Rem Designer: Andrew D. South
Rem ***** Main Source File *****
SYNC ON
SYNC RATE 30
SetControlDevice()
PRINT CONTROL DEVICE NAME$()
END
`Sets the current control devices
FUNCTION SetControlDevice()
PERFORM CHECKLIST FOR CONTROL DEVICES
IF CHECKLIST QUANTITY() = 1
SET CONTROL DEVICE CHECKLIST STRING$(1)
EXITFUNCTION CHECKLIST STRING$(1)
ENDIF
CLS
PRINT "Please Select Control Device"
FOR X = 1 TO CHECKLIST QUANTITY()
tempstring$ = STR$(X)+": "+CHECKLIST STRING$(X)
PRINT tempstring$
NEXT X
INPUT ConDev
SET CONTROL DEVICE CHECKLIST STRING$(ConDev)
ENDFUNCTION CHECKLIST STRING$(ConDev)
When we all lend our power together, there is nothing we
can't do!
Please Lend me your STRENGTH!