Author: Eurico Chagas Filho
Posted: 2011-04-26 at 14:23:19
Create a procedure and execute like oApp.DoForm("Form", param1, param2),
then inside the procedure u do your Do Form command
HTH, E.
----- Mensagem original ----
De: "Michael J. Babcock, MCP" <mbabcock@mbsoftwaresolutions.com>
Para: ProFox Email List <profox@leafe.com>
Enviadas: Terça-feira, 26 de Abril de 2011 14:42:24
Assunto: Shortcut menus (VFP9SP2)
I don't use shortcut menus much but am trying to now. I've got a
scenario where I want to right-click on the form and launch a shortcut
menu to offer a couple choices to the user (one of which is for that
changing of font sizes that I mentioned in an earlier thread).
I designed the shortcut menu in VFP's IDE. In my base form class, I put
this code in the RightClick event: DO config_help.mpr WITH this
I've checked out VFP Help and noticed that the SampleMenu.MPR file has a
parameter statement in it. However, when I generate the menu, it
doesn't put a PARAMETER statement in. So I added it to the MPR code,
but when I run the app, it errors and says NO PARAMETER STATEMENT FOUND
and then when I step into the code, it says Source out of date. So I
feel like it's a chicken-or-egg first scenario here.
Any help understanding how to get the Menu Designer to put that
PARAMETER statement in would be appreciated.
Tia,
--Mike
--
Michael J. Babcock, MCP
Chief Software Architect
MB Software Solutions, LLC
http://www.mbsoftwaresolutions.com
p: 717-350-2759
f: 815-642-9707
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/4DB70400.5070905@mbsoftwaresolutions.com
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/508935.24179.qm@web37005.mail.mud.yahoo.com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.