max length of blitz string?

BlitzPlus Forums/BlitzPlus Programming/max length of blitz string?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

A string in Blitz uses a longint at the start of the string, which is 4 bytes, to define the length of it.

So a string can be up to 4,294,967,295 characters long.

So no, there's effectively no limit.

When you save a string into a file, keep in mind that those 4 length bytes are saved with it at the start of the string. So the number of bytes it takes up is 4 + Len(String$)