Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Give object focus
Message
From
03/06/2003 15:22:51
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
03/06/2003 15:08:59
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00795842
Message ID:
00795855
Views:
16
>so would it go something like this?
>
>if inlist(.......)
> return
>else
> messagebox(.......)
> validate = .T.
>endif

Something like this:
* TextBox.Valid()
if not inlist(...)
  MessageBox(...)
  return .F.
endif
Personally, however, I prefer the form design where the user can jump between different TextBoxes, and all rules for the record are validated when the user tries to save. This is easier to program, and can save the user some trouble, too.

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform