Page 1 of 1

multi-dimensional array

Posted: Mon May 11, 2020 11:53 am
by vilian
How to know if an array is a multi-dimensional array?

Re: multi-dimensional array

Posted: Mon May 11, 2020 12:01 pm
by cnavarro

Code: Select all

? Valtype( aArray[ 1 ] ) = "A"
 
or with AEVAL for test all elements

Re: multi-dimensional array

Posted: Mon May 11, 2020 12:16 pm
by vilian
Thank you !

Re: multi-dimensional array

Posted: Mon May 11, 2020 12:18 pm
by ADutheil
aEval would be safer. Think of aArray := { 1, 2, { 1, 2, 3 }, 4}