Citect GraphicsBuilder Automation VBA Reference Late Binding

Regarding CitectSCADA 2018 R2.

I prefer to use late binding for my VBA code for Citect GraphicsBuilder automation so other users won't have to manually select the GraphicsBuilder library reference via the VBA editor.

The VBA code works fine with early binding as follows:

Dim GraphicsBuilder As IGraphicsBuilder2
Set GraphicsBuilder = New GraphicsBuilder.GraphicsBuilder

However I can't get it to work using late binding as follows:

Dim GraphicsBuilder As Object
Set GraphicsBuilder = CreateObject("IGraphicsBuilder2.GraphicsBuilder")

Also I have unsuccessfully tried:

Set GraphicsBuilder = CreateObject("GraphicsBuilder.GraphicsBuilder")

Syntax for CreateObject method is CreateObject(class) where class is appname.objecttype. Can anyone help? 



 


Parents Reply Children
No Data