image_dir$ = "data\\images\\"
...is giving me a syntax error, but...
image_dir$ = "data\\images"
...doesn't.
What am I doing wrong?
Cheers
dir$=GETCURRENTDIR$()
PRINT dir$, 100, 100
SHOWSCREEN
...solved it for me. GLBasic uses forward slashes in filenames even under Windows, so "./data/images/" works across platforms which is helpful.
Still, how would you have a string with multiple backslashes if it errors at two?
Regards
use "/" slashes _only_
Mabe this should be clarified in each help-subject for a command that needs a filename, might lower the support questions for people not able to load their images :-)