Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need help using set filter to
Message
 
 
To
01/05/2000 15:24:43
Richard Williams
State of Ohio, Dept. of Development
Columbus, Ohio, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00364859
Message ID:
00364875
Views:
41
>Why can't I use this statement?
>set filter to grant_nbr=substr(grant_nbr,1,1) ="N" .or. substr(grant_nbr,3,1) ="C" .or. substr(grant_nbr,3,1)="J" .or. substr(grant_nbr,3,1)="L"
>??????????????Thanks Rick

Grnat_Nbr is (I'm assuming) a character string. It will never be equal to .T. or .F. which is what the first expression is trying to evaluate it against. Try:

set filter to substr(grant_nbr,1,1) ="N" .or. substr(grant_nbr,3,1)$"CJL"
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Reply
Map
View

Click here to load this message in the networking platform