Hi. I'm wondering if its possible to use a Codeptr instead of a function name when adding a DDT control?
e.g.
When I run the above, i get an error "undefined label/line reference" Any ideas? The reason I need to do this is because my controls need to be created dynamically from a script and the specific call back function to be used for a particular button is also specified in the script.
-Mike
[This message has been edited by Mike Joseph (edited June 27, 2000).]
e.g.
Code:
Callback Function Test() as long Msgbox "hi" End FUnction Sub TryIt() lFunc = CODEPTR(Test) CONTROL ADD BUTTON, hWin, %CTL_ID, "Caption", _ x,y,xx,yy, 0, CALL lFunc End Sub
-Mike
[This message has been edited by Mike Joseph (edited June 27, 2000).]
Comment