What is the correct method for doing this?
I dont want to use a global variable cos im creating a window
with a function that can be called from different apps.
The function is #INCLUDED into each app as needed and I dont want
to have to add a bunch of Globals to each app.
To simplify the problem lets say I want to send the starting value
for say a COMBOBOX. The app that calls the function and passes the
number of the desired item to be displayed first.
When I create a new window with the COMBOBOX in it, i need to pass
that number to the CALLBACK FUNCTION.
The problem is the callback function does not allow for arguments.
How do you guys deal with this?
------------------
Kind Regards
Mike
[This message has been edited by Mike Trader (edited August 19, 2001).]
I dont want to use a global variable cos im creating a window
with a function that can be called from different apps.
The function is #INCLUDED into each app as needed and I dont want
to have to add a bunch of Globals to each app.
To simplify the problem lets say I want to send the starting value
for say a COMBOBOX. The app that calls the function and passes the
number of the desired item to be displayed first.
When I create a new window with the COMBOBOX in it, i need to pass
that number to the CALLBACK FUNCTION.
The problem is the callback function does not allow for arguments.
How do you guys deal with this?
Code:
CALLBACK FUNCTION SelectCB() AS LONG SELECT CASE CBMSG CASE %WM_INITDIALOG COMBOBOX SELECT CBHNDL, 201, StartVal' Set MsgBox to desired Item ' ' ' END SELECT END FUNCTION
Kind Regards
Mike
[This message has been edited by Mike Trader (edited August 19, 2001).]
Comment