Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 03 OCT 2002 10:23:45AM Oystein Reigem wrote:

Now here's something I never noticed before: I get a compilation error if I have a string longer than 255 characters (B113 Illegal expression encountered and B102 Illegal Statement). (I'm not talking about the content of a variable, but a quote-enclosed literal or constant, like "qwertyuiop", only longer.)

It's not strange I haven't noticed before. Usually I break up long strings to make the code more readable. But I can't remember anybody else mentioning it either. Did I sleep in class?

OI 4.0.3.

- Oystein -


At 03 OCT 2002 11:59AM Richard Hunt wrote:

Oystein,

That has been the standard of RBASIC since the beginning. It has to do with the compiler and how it handles litteral strings. Only one byte is used for the length, thus 255 length limit.

If you check out the run code you will see the litteral strings at the end of the code. In short, it will have a one byte length then the actual litteral string.

And yes, like you have been doing in the past, just break down the litteral string into smaller ones.


At 03 OCT 2002 12:19PM Oystein Reigem wrote:

Richard,

Thanks for clearing this up for me.

- Oystein -

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/a6a2a85574faae8e85256c47004f1462.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1