I must declare a multi array type
aVal := { { } ,;
{ } }
But I not Know how many records there are
How I can say to fivewin if
aVal:={ }
is multiple array ?
declare array
- Silvio.Falconi
- Posts: 7138
- Joined: Thu Oct 18, 2012 7:17 pm
- Been thanked: 1 time
declare array
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Re: declare array
Silvio,
maybe ( sample ) :
LOCAL aArray := { { 1, 2 },{ 1, 2 },{ 1, 2 } }
? LEN ( aArray ) // Result = 3
? LEN ( aArray[1] ) // Result = 2
regards
Uwe
maybe ( sample ) :
LOCAL aArray := { { 1, 2 },{ 1, 2 },{ 1, 2 } }
? LEN ( aArray ) // Result = 3
? LEN ( aArray[1] ) // Result = 2
regards
Uwe

Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
i work with FW.
If you have any questions about special functions, maybe i can help.
- Silvio.Falconi
- Posts: 7138
- Joined: Thu Oct 18, 2012 7:17 pm
- Been thanked: 1 time
Re: declare array
Uwe,
Pls
I not Know how many record I can have
I need it for the nages test of circular graph http://forums.fivetechsupport.com/viewtopic.php?f=3&t=33772
it wants multiple array ...
Pls
I not Know how many record I can have
I need it for the nages test of circular graph http://forums.fivetechsupport.com/viewtopic.php?f=3&t=33772
it wants multiple array ...
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
- nageswaragunupudi
- Posts: 10721
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Been thanked: 8 times
- Contact:
- Silvio.Falconi
- Posts: 7138
- Joined: Thu Oct 18, 2012 7:17 pm
- Been thanked: 1 time
Re: declare array
yes of course !!!
BUT I not Know the value of nRows and nCols
if at init I made
aVal:={ }
then not run because the procedure understood the array is simply and not multiple as
aVal:={ { } ,;
{ },;
{ } }
I insert 3 records for make a sample
BUT I not Know the value of nRows and nCols
if at init I made
aVal:={ }
then not run because the procedure understood the array is simply and not multiple as
aVal:={ { } ,;
{ },;
{ } }
I insert 3 records for make a sample
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
- James Bott
- Posts: 4840
- Joined: Fri Nov 18, 2005 4:52 pm
- Location: San Diego, California, USA
- Contact:
Re: declare array
Function IsMultipleArray( aArray )
Return iif( valtype( aArray[1]="A", .T., .F. )
Return iif( valtype( aArray[1]="A", .T., .F. )
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10