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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing a parameter from the Menu to a procedure

Status
Not open for further replies.

Rena

Programmer
May 24, 2000
69
US
In one of my applications, I have a menu that 'surrounds' all my procedures. On one of the Items, I would like to pass a parameter to the called procedure. On the Actions tab - I have tried putting a global variable in Parameter: field but when I compile it, I get two errors:
1. No matching prototype available
2. Too many parameters

Isn't there a way to pass a parameter to a called procedure?

Thanks,
Rena
 
Here is the solution I came up with.

I took the variable off of the Parameters: field.

I clicked on the Embeds button and on the Accepted embed point, I set my global variable.

Then I checked this global variable in the called procedure.

It worked just like I wanted it to. [smile]

HTH somebody.

Rena
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top