Once you've found the index, you need to use ASUBSCRIPT() function to
convert it into a row or column.

index = ASCAN(filestru,"ID")
nRow = ASUBSCRIPT(filestru,index,1)
nCol = ASUBSCRIPT(filestru,index,2)

Fred


On Sun, May 1, 2011 at 2:25 PM, Jerry Foote <[email protected]>wrote:

> I have populated array with afields(filestru)
>
> I need to find the row with the field ID, so that I can get the value of
> filestru(row,17) and filestru(row,18)
>
> Ascan(filestru,"ID") gets me the value if the array as if it was a single
> dimension array where in VFP the array is 18 col wide
>
> I have tried ascan(filestru,"ID",-1,-1,18) and a bunch of other vars. None
> give me row I'm looking for.
>
> Any help appreciated..'
>
> Thanks Jerry
>
>
>
>
>
> --- StripMime Report -- processed MIME parts ---
> multipart/alternative
>  text/plain (text body -- kept)
>  text/html
> ---
>
[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to