Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Any other options for menu design?
Message
De
17/09/2016 02:47:21
 
 
À
16/09/2016 17:16:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Network:
Windows Server 2012
Database:
Visual FoxPro
Application:
Desktop
Virtual environment:
VMWare
Divers
Thread ID:
01640986
Message ID:
01640993
Vues:
71
[...]

>But I sort of wanted to use ON SELECTION BAR to jump to the form but could not figure out how to do that e.g.
>
>ON SELECTION BAR <bar> THIS.ioCallingForm.DeleteDocument()
>
>Reading the help, I see why: you can only execute a command. So I would need to call a .prg or a procedure in some procedure file (and then I would suspect that there would be problems anyhow as a popup is sort of just "out there" on it's own i.e. I am not sure I could get back to the last active form anyhow.
>
>So my question: is this the only real design for a class if I need to be able to reference something on the calling form or calling object?
>
>Thanks,
>Albert

You can access the methods of the active form trough _SCREEN.ActiveForm.

For instance:
ON SELECTION BAR <bar> _SCREEN.ActiveForm.DeleteDocument()
----------------------------------
António Tavares Lopes
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform