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.
Author: MB Software Solutions, LLC
Posted: 2011-04-26 15:34:58 Link
On 4/26/2011 2:23 PM, Eurico Chagas Filho wrote:
> Create a procedure and execute like oApp.DoForm("Form", param1, param2),
> then inside the procedure u do your Do Form command
But I still need the parameter to be passed as this will be a reference
to the form, and the form could be one of many many forms, so no
hardcoded form name.
--
Mike Babcock, MCP
MB Software Solutions, LLC
President, Chief Software Architect
http://mbsoftwaresolutions.com
_______________________________________________
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/4DB71E62.1030100@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.
See my prior message, it should give you something to look at.
::michael
On Apr 26, 2011 12:35 PM, "MB Software Solutions, LLC" <
mbsoftwaresolutions@mbsoftwaresolutions.com> wrote:
> On 4/26/2011 2:23 PM, Eurico Chagas Filho wrote:
>> Create a procedure and execute like oApp.DoForm("Form", param1, param2),
>> then inside the procedure u do your Do Form command
>
>
> But I still need the parameter to be passed as this will be a reference
> to the form, and the form could be one of many many forms, so no
> hardcoded form name.
>
> --
> Mike Babcock, MCP
> MB Software Solutions, LLC
> President, Chief Software Architect
> http://mbsoftwaresolutions.com
> http://twitter.com/mbabcock16
>
[excessive quoting removed by server]
_______________________________________________
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/BANLkTimM1L8QV=gMm9ZN1DD+NydePFK35A@mail.gmail.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.