FactoryTalk Global Objects don't keep VBA Code

aspnxdd

Member
Join Date
Mar 2021
Location
Bcn
Posts
1
Hello guys, can anyone help me with FactoryTalk View Studio.

I need to use a Global Object that contains VBA Macros in different displays, but it doesn't keep the VBA code when I copy it.

Any idea?
 
Global objects

The code should still run in the pasted instance in your display. Since global objects are class based, their config resides in the global objects display, not in the instance displays. But any VB defined in the global display should still run when the object is instantiated in the instance display. I would add a simple button with a msgbox() in the global object and test that out. Copy paste to an instance display and then press the button to verify the VB is still there in the background.


If you need the VB to be different from instance to instance, then you can't use a global object for that.
 

Similar Topics

Hello all, I am working on a project in FactoryTalk SE. Suddenly while working on a new screen, the global objects I am copying to it are not...
Replies
0
Views
1,273
I have a FactoryTalk ME application with some global objects for diagnostics of 1769 and 1719 IO modules that don't work. They were developed by...
Replies
3
Views
1,910
Hi all, Does anyone know of a way to pass global objects a parameter file name as a variable? e.g passing {#101} or the like to the to...
Replies
0
Views
1,316
I have a similar question to a previous post but thought it warranted its own thread. I have a global object (primarily acting as a goto display)...
Replies
1
Views
1,556
I am have a hellofa time trying to find an answer to this: Is it possible to use Global objects with Parameter files? I see that I can embed...
Replies
2
Views
4,159
Back
Top Bottom