Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IF (pending =
Message
From
06/02/2004 06:57:07
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
06/02/2004 05:24:12
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00874751
Message ID:
00874766
Views:
7
>pending = 'I'
>actcod = '123456789'
>IF (pending = "I" .AND. actcod = SPACE(9))
> SELECT records.......
>ELSE
> SKIP
>ENDIF
>
>the condition is true but the else part execute. any idea....

The condition might not be true, double check. You didn't alias the variables, therefore it's not clear if your intention is to check against memvar or field vars. Fields with same name would take precedence.

1) There might be a field named 'pending' with a value other than "I"
2) There might be a field named 'actcod' with a value not starting with space(9) && set exact on/off matters
3) No such fields might exist in current workarea and thus it's interpreted as :
IF (m.pending = "I" .AND. m.actcod = SPACE(9))
from code this is .F. if you didn't put '1...9' there to represent 9 spaces.

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform