This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-06-19 16:40:51

hart20
New Scratcher
Registered: 2012-06-12
Posts: 9

Variable limitations

Any restrictions on the number of characters that can be saved to a variable? e.g. if I wanted to keep a running tab of free text answers to a question between user runs?

Offline

 

#2 2012-06-19 16:45:08

PhirripSyrrip
Scratcher
Registered: 2012-02-11
Posts: 100+

Re: Variable limitations

I'm not too sure what your example means, but if there is a limit, it's very very high. Wes64 once saved over 10,000 characters to one variable to make pi. (link to project)


http://i46.tinypic.com/ao03lk.png

Offline

 

#3 2012-06-19 18:15:37

amcerbu
Scratcher
Registered: 2009-07-21
Posts: 500+

Re: Variable limitations

You can always use a list if you're unsure about data.  The thing is, decimal numbers get capped off after 12 digits, I think.  On the other hand, strings can be very long; you just have to make sure the variable includes spaces, for example.

Offline

 

#4 2012-06-19 18:18:36

Molybdenum
Scratcher
Registered: 2012-06-17
Posts: 1000+

Re: Variable limitations

PhirripSyrrip wrote:

I'm not too sure what your example means, but if there is a limit, it's very very high. Wes64 once saved over 10,000 characters to one variable to make pi. (link to project)

Link 's broken (almost thought I had a virus the message my computer displayed); heres the correct one:
http://scratch.mit.edu/projects/Wes64/2563183


"The Enrichment Center is required to remind you that you will be baked, and then there will be cake."
(|Balls and Platforms: Stay on!|) (|NaOS-H: An operating system... Or is it?|)

Offline

 

Board footer