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 / ARRAY COUNT() for individual dimensions?

Author
Message
Mr909
12
Years of Service
User Offline
Joined: 2nd Jun 2012
Location:
Posted: 30th Nov 2012 23:34
Is there a way to do it?

I have this array, mods(x,2) where x is currently 15 but is also dynamic. Is there any way to get just the x?
TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 1st Dec 2012 03:05
Matrix1Utils has the command get array count( mods() , position ). Set position to a value of 0 if you want to get the "x" in mods(x,2). Set the position to a value of 1 if you want to get the "2" in mods(x,2). You can set it to higher values as well if you have higher dimension arrays.

TheComet

Mr909
12
Years of Service
User Offline
Joined: 2nd Jun 2012
Location:
Posted: 3rd Dec 2012 00:23
Thanks TheComet!

Login to post a reply

Server time is: 2024-11-21 18:58:50
Your offset time is: 2024-11-21 18:58:50