Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why the code doesn't give the expected result?
Message
From
13/11/2006 08:02:44
 
 
To
13/11/2006 07:59:07
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01169114
Message ID:
01169119
Views:
8
>Even though txtbox_date is defined as a textbox which requires user input as a date. When this line below excutes vfp says txtbox_date not found
>
>EMPTY(Alltrim(txtBox_date.value))

As Sergey says, you need both to be empty before the message will fire.
Therefore it should be OR,

Think of it logically: "If this isn't filled or that isn't filled then I need to tell the user to fill both"
As it stands, the message will only fire if BOTH are empty.

BTW ("Please enter something in both fields") - there's an "e" in "something"
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform