Re: Size restriction on a variable?
Re: Size restriction on a variable?
- Subject: Re: Size restriction on a variable?
- From: Emmanuel <email@hidden>
- Date: Tue, 31 Jul 2001 22:47:19 +0200
At 6:12 +0200 31/07/01, Greg Strange wrote:
>
>
I know this has probably been covered at some point, but is there a size
>
limit on a variable? I mean can it be over 32K? If so, how big over 32K?
>
>
I have tried and I am getting errors but it may be due to the fact that I am
>
trying to manipulate a file.
Here are the limits I'm aware of:
- no window of the Classic Script Editor will display more than 30,000
characters.
- lists longer than some small number (4000 ? 5000) behave strangely.
Please You who know correct me. Personally I often store data in strings
instead of long lists.
- you cannot use comparison operators on strings over 32,767 characters.
For instance ALWAYS prefer:
-----------------------
if (length of theString = 0)
----------------------- (which works)
to
-----------------------
if theString = ""
----------------------- (which is broken if theString is over 32K)
HTH
Emmanuel