General information
Category:
Forms & Form designer
Jim;
Simple and elegant. By the time I created my third VFP application framework in 1995 I learned to incorporate such features into each object and form. It makes life easier in the real world. Let the object and form do the work. Then you do not have to worry about such things each time you have a business rule to enforce.
Tom
>>Thanks I will incorporate the return .f.
>>
>>Carmen
>
>Carmen,
>
>If you return .F. from the textbox's Valid the user won't be able to exit the form unless they enter a good order number. You could simply add a Proeprty to your form, perhaps named GoodOrdNum. Then in the Valid of the order number textbox you put Thisform.GoodOrdNum = .T. or .F. accordingly. In the WHEN of all controls except the Cancel button you put Thisform.GoodOrdNum and you're done. The textbox wonj't prevent them from using the Exit or Cancel button and no other control will accept focus until the order number is validated by the textbox.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only