Hello,
How can I detect when a variable contains a single data or an array ?
In case it contains an array, how can I determine the dimension of this array ?
Thanks a lot for any help.
if ValType( uVar ) == 'A'
// array
nRows := Len( uVar )
if nRows > 0
if ValType( uVar[ 1 ] ) == 'A'
// 2 dimentional array
nCols := Len( uVar[ 1 ] )
endif
endif
else
// not an array
endif
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 73 guests