Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Searching array for exact
Message
 
 
To
09/07/2002 15:30:37
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00676791
Message ID:
00676795
Views:
18
You can pass -1 for parameters you don't need to specify.
? ASCAN(laField,'REVWORD',-1,-1,-1,6)
>VFP 7 introduces a new parameter to search an array for exact match. This parameter is the 4th optional one. When I first tried that, I used:
>
>
>? ASCAN(laField,'REVWORD',,,,6)
>
>
>But, if we use the 4th optional parameter, we have to pass a value to the first 3. Otherwise, an error is returned. So, the following is needed:
>
>
>? ASCAN(laField,'REVWORD',1,1,1,6)
>
>
>I was just wondering if I did it right or if there is a way to do it based on my first example.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform