Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IF statement
Message
From
17/04/2006 05:57:23
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
17/04/2006 04:14:47
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01114007
Message ID:
01114013
Views:
16
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform