After I asked I remember (but not sure) that ALL version of VFP since VFP6 (the oldest version I use) have this syntax:
Code:
ASCAN(array, item searched, starting number, elements to search, searched column)
so, if you want to search in column 2:
Code:
ASCAN(array, item searched, 1, -1, 2)
Just remember that if you use version smaller that VFP8 this syntax returns you the element number as a one dimensional array. You should use ASUBSCRIPT() function to return you the row number. If you have VFP8 or 9 you should check in last parameter for that function (nFlags).
In a corporate environment, I can't just buy and install my own software - and failed many times over to prove to the higher ups that we need it. I gave up.
FWIW before we had the "column to search" parameter of Ascan(), almost every VFP developer had a UDF in the toolbox called AColScan() or something like it.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.