Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Any other options for menu design?
Message
From
17/09/2016 02:47:21
 
 
To
16/09/2016 17:16:37
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Network:
Windows Server 2012
Database:
Visual FoxPro
Application:
Desktop
Virtual environment:
VMWare
Miscellaneous
Thread ID:
01640986
Message ID:
01640993
Views:
70
[...]

>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
Previous
Reply
Map
View

Click here to load this message in the networking platform