I have never liked arrays, in fact I hate them !!!
I have an array aSectors

first column := sectors
Second column:= element code
then I have another array aPricesOld

I wish check on aPricesOld each record if have the same sector and Element code of aSectors
if not is the same the procedure must save an X on field number 8 of aPricesOld array
I made
why not run ok ?
sample see the second image the record number 1 and seven are not the same and must have the X
I have an array aSectors

first column := sectors
Second column:= element code
then I have another array aPricesOld

I wish check on aPricesOld each record if have the same sector and Element code of aSectors
if not is the same the procedure must save an X on field number 8 of aPricesOld array
I made
cSector:=""
cElement:= ""
For n= 1 to Len( apricesOld )
cSector:= apricesOld[n][3]
cElement:= apricesOld[n][2]
If AScan( aSectors, cSector ) != 0 .and. AScan( asectors, cElement ) != 0
apricesOld[n][8]:= "X"
Endif
Nextwhy not run ok ?
sample see the second image the record number 1 and seven are not the same and must have the X
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour March-April 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 March-April 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
