Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
AScan on a specific column?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00005501
Message ID:
00006167
Views:
72
>>This should eliminate the need for a DO WHILE.
>>
>>I have not done any testing on this but it sounds good
>>to me.
>>
>>lnStartElement = AELEMENT(ArrayName,1 ,nDesiredColumn)
>>lnStopElement =( AELEMENT(ArrayName,1 ,nDesiredColumn+1) -1)
>>?ASCAN(Array, "FindMe",lnStart, lnStopElement)
>>
>Chris,
>
>1. I'm not sure you can do it without a DO WHILE since you cannot do the actual ASCAN on a specific column, therefore you have to validate the column number.
>2. Assumming that no.1 is true, I'm not sure I understand the purpose of using AELEMENT() as described above. Please explain.
>
>Sorin

You are correct.

I had thought that array element numbering went vertically and then over to the next column.
Therefore it would be possible to identify the first and the last element in a particular column and use those numbers for starting and ending elements to search.
To my dismay, I have relearned that element numbering goes across and then down.

I should have known that I had done it perfectly in the first place.


Chris
Chris
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform