DonMeck
01-21-2005, 01:53 PM
Hey,
normally when I need to access something that is initialized later in the code,
I use (global) forward declarations. And usually it works. But somehow I can't make it work with an activeX control I'd like to access from several functions. :sad:
I tried something like this
macroscript ...
(
....
global myXControl
.....
function x1
(
....
myXControl.Add()
....
)
function x2
(
....
myXControl.Add()
....
)
etc. ...
rollout....
(
....
group "Output"
(
activeXControl myXControl "MSComctlLib.ListViewCtrl" height:400
)
....
)
---------
But I get runtime errors, as it says that myXControl is undefined.
Any idea?
thx
normally when I need to access something that is initialized later in the code,
I use (global) forward declarations. And usually it works. But somehow I can't make it work with an activeX control I'd like to access from several functions. :sad:
I tried something like this
macroscript ...
(
....
global myXControl
.....
function x1
(
....
myXControl.Add()
....
)
function x2
(
....
myXControl.Add()
....
)
etc. ...
rollout....
(
....
group "Output"
(
activeXControl myXControl "MSComctlLib.ListViewCtrl" height:400
)
....
)
---------
But I get runtime errors, as it says that myXControl is undefined.
Any idea?
thx
