Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Field Level Validation VS Validation Procedure
Message
From
28/04/1998 11:01:49
 
 
To
28/04/1998 10:45:28
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00095389
Message ID:
00095403
Views:
20
>2b) The user adds a record, the first field is blank and the user selects the 'Save' button. >Result: The message 'Field Can't Be Blank, Try Again'. The focus is on the 'Cancel' button where the user must select the 'Cancel' button, but the user still has the opportunity to edit the record. This does exactly what I want it to do. I don't actually understand why if the user clicked the button the button has the focus, but the NODEFAULT could take care of that. SAVEBUTTON.click NODEFAULT IF LEN(ALLTRIM(this.parent.first_field.value))=0 && Assumes character field answer=MessageBox ... Do you want to continue editing. IF answer=YES this.parent.first_field.setfocus RETURN ENDIF ENDIF DODEFAULT()
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform