FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour multi-dimensional array
Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM
multi-dimensional array
Posted: 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
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: multi-dimensional array
Posted: Mon May 11, 2020 12:01 PM
Code (fw): Select all Collapse
? 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
Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM
Re: multi-dimensional array
Posted: Mon May 11, 2020 12:16 PM

Thank you !

Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
Posts: 368
Joined: Sun May 31, 2009 06:25 PM
Re: multi-dimensional array
Posted: 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

Continue the discussion