Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cancel Operation from a required field
Message
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00008117
Message ID:
00008122
Views:
39
>Has anyone come up with a good method that will
>allow a user to cancel an operation while they are
>on a field that requires entry.
>
>They have requested to add a new record.
>The user is then presented to a screen with X number
>of fields, some of which are required and in their
>VALID code states IF EMPTY(fieldname) THEN 'Field must
>be filled' ENDIF
>
>but what if the user presses the CANCEL button, how do I
>know that they have touched the CANCEL button so
>as to let them out of the required field and let the CANCEL
>valid be fired off.
>
>Any suggestion please.
>
>Bret

we place the test for leaving a required field in the save button. it's a bit too detailed for here (checking all objects to see if they require an entry, warning if left empty and returning to first object failing), but if you want more, let me know.

if you leave the test in the field's valid, you can't leave until something valid is entered...
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform