OnAction

J

JonWayne

If the calling function of a CommandBars menu item requires a few string
arguments, how do you enter the OnAction property setting for that menu
item? Lets say the function was declared as :

Function DownloadFile(SiteAddress$, Login$, Password$, SomeNum%, FileSpec$)
 
W

Wolfgang Kais

Hello "JonWayne".

JonWayne said:
If the calling function of a CommandBars menu item requires a few
string arguments, how do you enter the OnAction property setting
for that menu item? Lets say the function was declared as :

Function DownloadFile(SiteAddress$, Login$, Password$, ...[snip]

I suggest to create the function without any argument and let the
function get the values from somewhere else (from controls on a
form or global variables...)
 
Top