Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
When SAVE is clicked
Message
From
13/09/2006 10:57:42
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01153237
Message ID:
01153342
Views:
13
This message has been marked as a message which has helped to the initial question of the thread.
>Hi folks,
>
>Using VFP9.0 I've created a form using the form wizard. It uses the standard text buttons. Now I need to call a method when the SAVE button is clicked. I have tried to put code in the Wizbtns.vcx(txtbtns) but then the buttons do not work properly.
>
>I need to know how to properly test the click event of the Save/Add/Edit buttons click to fire a method that finctions before the save is initiated.

You can also have your code in the button's .when(), and then if you don't want the button's .click() to execute, simply return .f. and it won't even get the focus. The trouble with this approach is that you also need to set .tabstop=.f., or else the .when() my fire when user tabs through controls.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform