Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error: STRING CONSTant
#1
This line:

CONST E$ TYPE STRING = "..."

Gives this error:

"Initializer expression is not constant."
Reply
#2
This is a BUG. Thanks for reporting it.
Will keep you updated.

That said, the correct syntax is:

Code:
CONST E As String = "..."
Reply
#3
Ok, here's a beta with the fix. Let me know if it works for you:

http://www.boriel.com/files/zxb/zxbasic-...ta2.tar.gz
http://www.boriel.com/files/zxb/zxbasic-...-beta2.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


Forum Jump:


Users browsing this thread: 1 Guest(s)