Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
LOCATE
Message
From
21/08/2000 14:05:25
 
 
To
21/08/2000 11:52:33
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Re: LOCATE
Miscellaneous
Thread ID:
00407349
Message ID:
00407436
Views:
24
>help!
>what am I doing wrong here. It returns an error saying is missing a comma.
>Can I use the LOCATE here?
>
>IIF(LOCATE FOR temp.Fyr = '2002' AND temp.source '777'),temp.descr," ")

No - LOCATE is a command; you need to run the LOCATE before the IIF() and then check FOUND(), or incorporate the logic that performs the LOCATE into a UDF that returns the value of FOUND(), and call the UDF.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform