Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error: Invalid file name (solved)
#1
This code gives an error:
"F Invalid file name"

Code:
SUB SaveImage
DIM size AS LONG
size = 192*32+32*24
SAVE "image" CODE 16384,size
END SUB

SUB Run
SaveImage
END SUB

Run
Reply
#2
It's a bug. Let me fix it.
In the meantime, declare the size variable of type UInteger, and it will work.
You can also use SAVE "image" SCREEN$ as in Sinclair BASIC.

EDIT: better try this beta which fixes this bug:
http://www.boriel.com/files/zxb/zxbasic-...a11.tar.gz
http://www.boriel.com/files/zxb/zxbasic-...beta11.zip
http://www.boriel.com/files/zxb/zxbasic-...-win32.zip
http://www.boriel.com/files/zxb/zxbasic-...x64.tar.gz
http://www.boriel.com/files/zxb/zxbasic-...cos.tar.gz
Reply
#3
Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)