>have a two deminsional array. want to search the second column for a matching name. How do I tell ASCAN i only want to match on the second column, and what does ASCAN return. Tried it in the command window, but did not have much luck.
>
>Thanks Brenda
You can't do it with ASCAN() nicely, because it searches two-dimensional arrays by rows first and then by columns. So, you may better search in loop:
For nLoop=1 to Alen(myarray,1)
IF myarray[nLoop,2]=="myexpression"
Return .T.
ENDIF
Endfor
Return .F.
Edward Pikman
Independent Consultant