May i get how much data an array include?

About advanced scenes, and the Thyme scripting language used in Algodoo.

May i get how much data an array include?

Postby l4m2 » Fri Jun 27, 2014 6:24 am

i wonder what to test
l4m2
 
Posts: 42
Joined: Fri Jun 27, 2014 6:21 am

Re: May i get how much data an array include?

Postby Kilinich » Fri Jun 27, 2014 8:55 am

Not much, max reasonable amount is few thousands elements.
Dream of Algodoo as game development engine...
User avatar
Kilinich
[Best bug reporter 2010]
 
Posts: 2098
Joined: Mon Aug 31, 2009 8:27 pm
Location: South Russia

Re: May i get how much data an array include?

Postby l4m2 » Fri Jun 27, 2014 2:39 pm

Kilinich wrote:Not much, max reasonable amount is few thousands elements.

What do you mean
l4m2
 
Posts: 42
Joined: Fri Jun 27, 2014 6:21 am

Re: May i get how much data an array include?

Postby Kilinich » Fri Jun 27, 2014 5:53 pm

oh you just want to know items count in existing array?

string.length()
Dream of Algodoo as game development engine...
User avatar
Kilinich
[Best bug reporter 2010]
 
Posts: 2098
Joined: Mon Aug 31, 2009 8:27 pm
Location: South Russia

Re: May i get how much data an array include?

Postby l4m2 » Sat Jun 28, 2014 4:45 am

Kilinich wrote:oh you just want to know items count in existing array?

string.length()


[1,2].length
950750 ms: - WARNING - Failed to evaluate: [1, 2].length, Object [1, 2] cannot have children; it is not a class object (its value is "[1, 2]")
error
l4m2
 
Posts: 42
Joined: Fri Jun 27, 2014 6:21 am

Re: May i get how much data an array include?

Postby l4m2 » Sat Jun 28, 2014 4:47 am

Kilinich wrote:oh you just want to know items count in existing array?

string.length()


i understand now.thank you!
l4m2
 
Posts: 42
Joined: Fri Jun 27, 2014 6:21 am

Re: May i get how much data an array include?

Postby l4m2 » Sat Jun 28, 2014 5:05 am

b9w may i know more about String?
l4m2
 
Posts: 42
Joined: Fri Jun 27, 2014 6:21 am

Re: May i get how much data an array include?

Postby electronicboy » Sat Jun 28, 2014 7:31 pm

What do you mean, what do you want to know?
When asking for help, READ THE STICKIES!
electronicboy
 
Posts: 1694
Joined: Mon Aug 31, 2009 6:18 pm

Re: May i get how much data an array include?

Postby l4m2 » Sun Jun 29, 2014 3:09 am

electronicboy wrote:What do you mean, what do you want to know?

Here we use String.length to count.I wonder what String can do more
l4m2
 
Posts: 42
Joined: Fri Jun 27, 2014 6:21 am

Re: May i get how much data an array include?

Postby Kilinich » Mon Jun 30, 2014 8:39 am

open console, type "string." press TAB
Dream of Algodoo as game development engine...
User avatar
Kilinich
[Best bug reporter 2010]
 
Posts: 2098
Joined: Mon Aug 31, 2009 8:27 pm
Location: South Russia

Re: May i get how much data an array include?

Postby l4m2 » Mon Jun 30, 2014 2:13 pm

Kilinich wrote:open console, type "string." press TAB

Kind are you
l4m2
 
Posts: 42
Joined: Fri Jun 27, 2014 6:21 am


Return to Thyme scripting

Who is online

Users browsing this forum: No registered users and 1 guest