I try to make the ActiveView control work in iFIX, this is a VBA environment.
I already inserted the .ocx file and I can load .PDI files in it.
Now I want to couple the trend property of the ocx display to the trend class of the library throught the following code:
Dim WithEvents pbd As PBSymLib.Trend
Set pbd = Pbd2.Display.Trend1 'where Pbd2 = ActiveView control (ocx)
However, when I run this I get an error about "Data mismatch". I don't understand what is wrong with this.