Android Question Maximum length of a variable in b4A

beelze69

Active Member
Licensed User
Longtime User
Hi !

Sorry if I sound too basic.

What is the maximum length of a variable in b4A ?

Note: I tried giving this declaration like
Dim strThisWillHoldTheItemDescription as String

- and the Compiler did not give me any error..

I just want to know what is the maximum length that is allowed

Thanks..
 
Last edited:

emexes

Expert
Licensed User
Lol, gotta love ground truth but you've got me wondering: are all characters of the name significant? Early BASICs were limited to one or two significant letters, eg Fred$ and Frank$ were the same variable. I vaguely remember 31 characters being a limit somewhere too, might have been TurboPascal. Is your test variable actually a separate variable to say:

a2345678901234567890123456789012345678901234567890a2345678901234567890123456789012345678901234567890a2345678901234567890123456789012345678901234567890a2345678901234567890123456789012345678901234567890a2345678901234567890123456789012345678901234567890a2345678901234567890123456789012345678901234567890a2345678901234567890123456789012345678901234567890a2345678901234567890123456789012345678901234567890a2345678901234567890123456789012345678901234567890a2345678901234567890123456789012345678901234567890a2345678901234567890123456789012345678901234567890a2345678901234567890123456789012345678901234567890a2345678901234567890123456789012345678901234567890a2345678901234567890123456789012345678901234567890a2345678901234567890123456789012345678901234567890a2345678901234567890123456789012345678901234567890a2345678901234567890123456789012345678901234567890a2345678901234567890123456789012345678901234567890a2345678901234567890123456789012345678901234567890a23456789012345678901234567890123456789012345678901234567890123456789012345678901234567890luca1234567890
 
Upvote 0

emexes

Expert
Licensed User
Sorry for derailing the thread.
That reminds me of a guy years ago who compressed supposedly non-compressible data by saving some of the data in the compressed-data filename (or perhaps filenames - if the compressor output can be multiple files, then you could compress any amount of data down to any arbitrary total file size eg even a single byte, if the filesystem allows zero-length files).

I feel like that happened in a magazine competition or challenge for readers to submit their best compression algorithm.

Say, that wasn't you, was it?!?!
 
Upvote 0

emexes

Expert
Licensed User
Was probably this:

The $5000 Compression Challenge

 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…