Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Ctrl+S to save, one more plea
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00418265
Message ID:
00418275
Vues:
46
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform