multi-dimensional array

multi-dimensional array

Postby vilian » Mon May 11, 2020 11:53 am

How to know if an array is a multi-dimensional array?
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
User avatar
vilian
 
Posts: 978
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

Re: multi-dimensional array

Postby cnavarro » Mon May 11, 2020 12:01 pm

Code: Select all  Expand view  RUN

? Valtype( aArray[ 1 ] ) = "A"
 


or with AEVAL for test all elements
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6549
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: multi-dimensional array

Postby vilian » Mon May 11, 2020 12:16 pm

Thank you !
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
User avatar
vilian
 
Posts: 978
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

Re: multi-dimensional array

Postby ADutheil » Mon May 11, 2020 12:18 pm

aEval would be safer. Think of aArray := { 1, 2, { 1, 2, 3 }, 4}
Regards,

André Dutheil
FWH 13.04 + HB 3.2 + MSVS 10
ADutheil
 
Posts: 368
Joined: Sun May 31, 2009 6:25 pm
Location: Salvador - Bahia - Brazil


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 72 guests

cron