• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Size restriction on a variable?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Size restriction on a variable? (From: Greg Strange <email@hidden>)

  • Prev by Date: Re: Converting "scpt" resource to text
  • Next by Date: Re: Scripting VSS
  • Previous by thread: Re: Size restriction on a variable?
  • Next by thread: Acrobat 5, Save as PDF?
  • Index(es):
    • Date
    • Thread