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

#1 2009-01-10 08:34:40

ScipioBellorum
Scratcher
Registered: 2007-05-15
Posts: 94

Maximum List Length

Is there a limit to the length of a list in Scratch? If so, are the limits the same on the program as on the online Java player?

Thanks,

SB


http://img393.imageshack.us/img393/339/logory8.png
                      The word processor for Scratch

Offline

 

#2 2009-01-10 09:39:53

Dan01
Scratcher
Registered: 2008-06-11
Posts: 100+

Re: Maximum List Length

ScipioBellorum wrote:

Is there a limit to the length of a list in Scratch? If so, are the limits the same on the program as on the online Java player?

Thanks,

SB

I just tested it offline, and it went past 9999, so I expect there isn't a limit. Not sure about online though.

Just make a project and put it the following script:
When Flag clicked
Forever
Add [.] to list


http://img3.imageshack.us/img3/4743/ubd6522wp8.png
http://img3.imageshack.us/img3/4667/ubd3758ox2.png

Offline

 

#3 2009-01-10 09:54:30

ScipioBellorum
Scratcher
Registered: 2007-05-15
Posts: 94

Re: Maximum List Length

Dan01 wrote:

ScipioBellorum wrote:

Is there a limit to the length of a list in Scratch? If so, are the limits the same on the program as on the online Java player?

Thanks,

SB

I just tested it offline, and it went past 9999, so I expect there isn't a limit. Not sure about online though.

Just make a project and put it the following script:
When Flag clicked
Forever
Add [.] to list

I thought it was probably infinite (up to the 10MB limit), I just wanted to check. Knowing the various inconsistencies between the on and off-line players I want to make sure any project will work ok for everyone.

Thanks for your help,

SB


http://img393.imageshack.us/img393/339/logory8.png
                      The word processor for Scratch

Offline

 

#4 2009-01-10 14:45:31

TheSaint
Scratcher
Registered: 2008-11-04
Posts: 1000+

Re: Maximum List Length

ScipioBellorum wrote:

Dan01 wrote:

ScipioBellorum wrote:

Is there a limit to the length of a list in Scratch? If so, are the limits the same on the program as on the online Java player?

Thanks,

SB

I just tested it offline, and it went past 9999, so I expect there isn't a limit. Not sure about online though.

Just make a project and put it the following script:
When Flag clicked
Forever
Add [.] to list

I thought it was probably infinite (up to the 10MB limit), I just wanted to check. Knowing the various inconsistencies between the on and off-line players I want to make sure any project will work ok for everyone.

Thanks for your help,

SB

Actually, I had a project that used extensive lists and it added 5 mb to my project and made it unplable. THere were 16 lists, each with anywhere from 1000 to 2000 vairables in them.

Offline

 

Board footer