Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Go Back to Previous Field
Message
From
07/11/2005 07:34:23
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
07/11/2005 04:02:11
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 7
OS:
Windows XP SP2
Network:
Novell 4.x
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01065909
Message ID:
01065937
Views:
11
>Hi,
>
>I am facing a problem, I have a form on which I calculated the Total amount of the a grid column. After that, there is a discount field and that Amount Received(EPOS SYSTEM). Please note that I have given the commands of Drawer Opening, Pole Display and Printing in Lost Focus event of Amount Received field.
>
>Suppose if by mistake a user comes on Amount Received field without giving any discount (if applicable) he cannot. Kindly suggest what to do in that case.
>
>Saif

You can go back to another object, with the .SetFocus() method.

However, I thínk it is better to do all validation at once, before saving the data. Let's assume you have a "Save" button. Before doing the TableUpdate(), you check some rules, and if some rule is violated, you simply inform the user and don't save.
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
Next
Reply
Map
View

Click here to load this message in the networking platform