Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
IF (pending =
Message
De
06/02/2004 06:57:07
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
06/02/2004 05:24:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00874751
Message ID:
00874766
Vues:
6
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform