David Crooks wrote:
> I have an array and I want to find out if a value exist. For example, I
> want to know if David is in the second column but it has "David Crooks"
> as the value.  I have searched the help and this forum and it isn't
> making any sense... ASCAN(lanames,"David",-1,-1,0,5) does not work. Any
> ideas?  TIA!
>
> David L. Crooks
>   
David

I just tried my suggestion and your original and they both work (in VFP9)

DIMENSION lanames(3,3)
lanames(2,2)="David Crooks"
? ASCAN(lanames,"David",1,-1,0,5)
5
? ASCAN(lanames,"David",-1,-1,0,5)
5

Paul Newton


_______________________________________________
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