Global Header that changes with each display

CoderByNature

Member
Join Date
Jun 2023
Location
Canada
Posts
5
Hey, pretty new to VB scripting in FactoryTalk SE. I am attempting to make a global object that will update the header text to match what screen the HMI is currently displaying without having to go into each screen and write the code to make it work.

Ideally, I write the code once in my global object screen and it will update everywhere that header is so long as VB scripting is allowed on said display.

Not sure if any of this makes sense or if its even possible, just looking to code smarter not harder. Copy pasting code 500 times is much more painful than writing it once.

Heres what I have that works

Private Sub Display_AnimationStart()
PageTitleText.Caption = Replace(ThisDisplay.Name, "_", " ")
End Sub
 
As a general idea perhaps consider using a global string variable. Have the header pull its value from that global variable, then you just have to push a string into that variable when you open a new page. Result is the same but might be a bit more efficient.
 

Similar Topics

Hello, I'm using FactoryTalk View ME V10. I created a valve as a global object with multiple parameters and when the object is being used at the...
Replies
2
Views
130
I am creating a global object in FTView SE 13. I want to have a string read from the PLC and display (in this case the tagname). So lets say...
Replies
4
Views
171
Hi all, Attached below is an example of what is happening to our existing SCADA. It seems after patching some Rockwell Software that I thought...
Replies
9
Views
326
Maybe I'm being dumb, but is there no way to print the contents of the Global Variables window while programming a Micro in Connected Components...
Replies
6
Views
687
Basically I have created a bunch of local tags, is it possible to convert all of these to a global tag? Or would I need to re-add everything all...
Replies
5
Views
1,172
Back
Top Bottom