Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / ArrayCount()

Author
Message
Waltzy
18
Years of Service
User Offline
Joined: 1st Jun 2006
Location: UK Cornwall
Posted: 27th Jun 2006 13:42
ArrayCount(Aenemy)

dose this command exist in BDC seen it allover the forums, but gives me "no such array dimention instilised" , i have called "Dim Aenemy(enemy*2) (with a deafault value of 2)" hel, anyone

cheers

Current Project: Chavinator | Build: 1.5.2
http://www.deviantart.com/view/35089061/
Dream And Death
18
Years of Service
User Offline
Joined: 21st Feb 2006
Location: The circus! Juggling job, kids and DBPro
Posted: 27th Jun 2006 15:59
Don't think it was in DBC. The reason it is in DBP is because of dynamic arrays. In DBC you always know what the upper limit is, because you set it! DBP dynamic arrays can shrink and grow, so rather than force you to keep track in another variable, they added Array Count() as a command.
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 27th Jun 2006 17:03
If it is there, you need a space between the words -

ARRAY COUNT(MyArray())



CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 27th Jun 2006 21:23
yop

Science, Mathematics, and Physics do not lie - only people do.
Tinkergirl
21
Years of Service
User Offline
Joined: 1st Jul 2003
Location: United Kingdom
Posted: 27th Jun 2006 22:11
And the array name does require the () braces at the end, as BatVink put.

Array Count(Aenemy())
Array Count(Aenemy)

That one caught me out for a good ten minutes one day. Bah.

Login to post a reply

Server time is: 2024-11-27 15:55:45
Your offset time is: 2024-11-27 15:55:45