Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Code is not functioning
Message
De
08/05/2006 13:40:33
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
08/05/2006 13:31:46
Chandan Chakraborty
Bangiya Gramin Vikash Bank
Raiganj, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6
OS:
Windows '98
Network:
Windows 98
Database:
Visual FoxPro
Divers
Thread ID:
01120099
Message ID:
01120106
Vues:
19
This message has been marked as the solution to the initial question of the thread.
>Why the code is not functioning?
>
>
>IF THISFORM.COMBO1.VALUE=ALLTRIM("RAM") OR ALLTRIM("RAHIM")
>INSERT INTO TESTC(NAME);
>VALUES(THISFORM.COMBO1.VALUE)
>ENDIF
>
>IF THISFORM.COMBO1.VALUE=ALLTRIM("SHYAM") OR ALLTRIM("JOHN")
>INSERT INTO TESTC(NAME);
>VALUES(THISFORM.COMBO1.VALUE)
>ENDIF
>
>
If works with boolean values. ALLTRIM("RAHIM") return value is character.
If
THISFORM.COMBO1.VALUE=ALLTRIM("RAM")
is not true, or would cause second expression to be evaluated and would fail.
Probably you meant:
if inlist(alltrim(THISFORM.COMBO1.Value),"RAM,RAHIM,SHYAM,JOHN")
  INSERT INTO TESTC (NAME) VALUES(THISFORM.COMBO1.Value)
ENDIF
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform