Hi my friend.
How can i determine the size (the number of fields) of a multidimensional array?
example:
xarr:={ {a,1} , {b,1}, {c,1}}
the length (number of records) is ok with len(xarr) will return 3, but I need a funtion to determine the size (the fields) like requestedfuntion(xarr) to return 2
Thank you.
Size of a multidimensional array
Moderator: Rathinagiri
- zolysoftsolutions
- Posts: 139
- Joined: Wed Feb 29, 2012 3:33 am
- Location: Gyulakuta, Erdélyország
- Contact:
Size of a multidimensional array
_______________________________
Open eyes for you!
Open eyes for you!
Re: Size of a multidimensional array
It's simple:
Code: Select all
xarr:={ {a,1} , {b,1}, {c,1}}
FOR i = 1 TO Len ( xarr )
MsgDebug (xarr [ i ], Len ( xarr [ i ] ) )
NEXT i
- zolysoftsolutions
- Posts: 139
- Joined: Wed Feb 29, 2012 3:33 am
- Location: Gyulakuta, Erdélyország
- Contact:
Re: Size of a multidimensional array
Thank you for quick replay.
so.. returns the number of columns in row i.
Thank you very much
so..
Code: Select all
len(xarr[i])
Thank you very much
_______________________________
Open eyes for you!
Open eyes for you!