Hi
I have a program with a few custom controls and (my mistake) I'm using a global variable shared between the controls and the program. Now I want to compile the controls to an independent ocx so I guess I should use another way to work with that variable. Probably a way should be to create a procedure in the OCX that I could call with the variable value (something like myocx.setvariable("xxxx")). The OCX neds the variable but does not change it, just use the value.
Any better idea to get access from the ocx to the global variable in my program?
Thks
I have a program with a few custom controls and (my mistake) I'm using a global variable shared between the controls and the program. Now I want to compile the controls to an independent ocx so I guess I should use another way to work with that variable. Probably a way should be to create a procedure in the OCX that I could call with the variable value (something like myocx.setvariable("xxxx")). The OCX neds the variable but does not change it, just use the value.
Any better idea to get access from the ocx to the global variable in my program?
Thks