Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Shortcut Menu - how to add a parameter? 1

Status
Not open for further replies.

GriffMG

Programmer
Mar 4, 2002
6,343
FR
I've been tinkering today with the use of a shortcut menu to invoke the FoxSpell spelling checker on all my text and editboxes.

I need to get a PARAMETER line into the beginning of the 'generated' .mpr file.

I have tried editing it after generating it and that works in the dev environment, but not when I compile to an exe.

In order to get around the problem I've hacked the 'GenMenu.prg' code and inserted a line which outputs:
Code:
Parameter m.oRef

Near the top of the code, but that seems a bit ham fisted, is there any other way to do it?



Regards

Griff
Keep [Smile]ing
 
Hi Griff,

In the menu designer click View->General. In the dialog that pops up there is a menucode section. Click the Setup checkbox and add your PARAMETER statement in the editbox that pops up.

Regards,

Mike
 
Ah, I knew it had to be easier than my method!

Thanks Mike

Regards

Griff
Keep [Smile]ing
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top