Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error: -1
#2
That's a casting problem (inconsistency).
LEN (string) is of type UInteger, so 65535 makes sense.
The second statement, LEN "" is being evaluated to 0 in compile time, hence converted to Integer (Do you get a Warning with these?)

I will have a look into it, however.

If you want to ensure you get -1, use Cast(Integer, LEN s) to ensure it's always Integer (-32768 to 32767).
Reply


Messages In This Thread
Error: -1 - by zarsoft - 08-06-2024, 08:54 AM
RE: Error: -1 - by boriel - 08-10-2024, 08:17 AM

Forum Jump:


Users browsing this thread: 3 Guest(s)