Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using Ascan()
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00854861
Message ID:
00854863
Views:
45
Dmitry,

From the Help file bold emphasis mine:

In Visual FoxPro 6, the nStartElement and nElementsSearched parameters are optional. The nStartElement must be > 0 while nElementsSearched can be any value. In order to accommodate the nSearchColumn parameter, you will need to bypass these parameters by passing a value of –1.


>The help for Ascan() function says that if you omit the nStartElement and nElementSearched, VFP will search the entire array. Yet the following syntax does not work:
>
>
>nRet = ascan( myarray, "ABC",,,2 )
>
>
>(I want to search the entire array, column 2 for value "ABC". I know I could figure out the first and the last element number but why can't VFP do it if I omit the arguments, as help suggests).
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform