Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Ctrl+S to save, one more plea
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00418265
Message ID:
00418275
Views:
47
>About the Ctrl+S issue.
>I think it is better to call a UDF instead of calling to the form directly.
>If no form is active you will get a error using this.
>For example
>
On Key Label Ctrl+S Do SaveMyForm
>
>Function SaveMyForm()
>If 'check for if the form is a good form'
>  _Screen.ActiveForm.Save()
>EndIf
>EndFunc


About the last thing,
For the check if the form is really a form you can use this:
TYPE("_screen.activeform") == "O" and;
  UPPER(_screen.activeform.BaseClass) = "FORM"
Then you can have another condition to check if the form is a form with a save capability.
Previous
Reply
Map
View

Click here to load this message in the networking platform