Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
IF statement
Message
De
17/04/2006 05:57:23
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
17/04/2006 04:14:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01114007
Message ID:
01114013
Vues:
15
>hi all,
>
>i try via this code, but i get the message for all choices.
>
>
>&&&range form 1 to 9
>IF THISFORM.TEXT4.Value=9 and THISFORM.TEXT5.Value>""
>          THISFORM.command1.visible=.T.
>          ELSE
>             THISFORM.command1.visible=.F.
>                 =MESSAGEBOX("íÌÈ ÇÏÎÇá ÇáÑÓÇáÉ") && this message
>                 thisform.text5.setfocus
>
>      IF THISFORM.TEXT4.Value>0 and THISFORM.TEXT4.Value<9
>               THISFORM.command1.visible=.t.
>       ELSE
>          =MESSAGEBOX("íÌÈ ÇÏÎÇá ÇáÇÌÇÈÉ")
>          THISFORM.command1.visible=.f.
>      ENDIF
>
>
>    endif
>
>thanks

Mohammed,
What does THISFORM.TEXT5.Value>"" mean and when it would be true?
What are you trying to do? To check if something has been entered into text5? Then check like:

IF THISFORM.TEXT4.Value=9 and !empty(THISFORM.TEXT5.Value)

or if you want a comparison like you did:
IF THISFORM.TEXT4.Value=9 and !(TRIM(Thisform.TEXT5.Value)=="")

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