Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pagex.deactivate()
Message
 
 
To
17/05/1998 21:18:16
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00100020
Message ID:
00100053
Views:
72
>I had this working in VFP3 but in VFP5 I can't.
>I thought that returning .F. in the Page.deactivate would prevent the clicked tab page from activating.
>Here's some code
>
>* --- Page1.deactivate ---
>RETURN THIS.PARENT.deactivatePage()
>
>* --- Pageframe.deactivatePage --- (custom method)
>RETURN THISFORM.Save()
>
>
>Now if the user clicks on Page 2's tab and the Save() returns .F. I would expect Page 1 to stay active.
>So I've gone wrong somewhere, 'cause it's not working. Any clues?

Try to issue NODEFAULT Command at the Save Event if condition returns is .F.

IF !RecordSave
NODEFAULT
ENDIF
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net

CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform