Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Go Back to Previous Field
Message
From
07/11/2005 14:45:22
 
 
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:
01066162
Views:
19
>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

From what I've read so far, you want the ability to go back to the Discount field if the user accidently got to the Amount Recieved field. The problem is that LostFocus() in the Amount Received field fires various other commands.

I see two possibilities.

1. Best, I think, is to move the Drawer Open, Pole Display etc. to a separate command button. This button can be disabled initially and the LostFocus() in the Amount Received field can enable it. Preferably, it should have validation logic so that it won't do anything unless all the necessary information is present.

2. Check the value in Amount Received. If it is some special value (zero, negative, or maybe even character) set focus back to the Discount field. Otherwise, perform the current set of tasks.

I think my first alternative is far better, but screen real estate, current interface, etc. may make second option better. I wouldn't be surprised to find a better solution offered elsewhere, but I think either of these ideas would work.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform