Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
If statement problem
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00951318
Message ID:
00951330
Views:
7
>I have a stored procedure which is invoked by an IF statement, shown below:
>
>IF INLIST(SUBSTRC(mainkey,AT('*',mainkey),8),'*AW2002*','*SS2002*')
>
>The if statement works great if any of my records contain 'AW2002' or 'SS2002'.
>What I would like to do is now reverse the statement so that if it does equal AW2002 or SS2002 then the stored procedure will not work!! I have tried:
>
>IF INLIST(!SUBSTRC(mainkey,AT('*',mainkey),8),'*AW2002*','*SS2002*','*AW2003*'
>
>&
>
>IF not INLIST(SUBSTRC(mainkey,AT('*',mainkey),8),'*AW2002*','*SS2002*','*AW2003*'
>


Maybe it sounds stupid, but how about "ELSE" ?
Regards from Berlin

Frank

Dietrich Datentechnik (Berlin)
Softwarekombinat Teltow (Teltow)

Frank.Dietrich@dd-tech.de
DFPUG # 327
Previous
Reply
Map
View

Click here to load this message in the networking platform