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).