FTView VBA - FTView VBA - Differences between view commands

Revnus

Member
Join Date
Aug 2019
Location
Brazil
Posts
73
Hi all.

Currently I'm working on a VBa script for FTView.
I would like to understand a bit better about some commands.

1) What are the differences between the commands "ShowDisplay", "LoadDisplay" etc

2) Related to question 1. How can I use objects exposed to VBA from a display on another display code.

3) What are differences between prefix "Application." "Me."?

Thanks
 
Hi all.

Currently I'm working on a VBa script for FTView.
I would like to understand a bit better about some commands.

1) What are the differences between the commands "ShowDisplay", "LoadDisplay" etc

2) Related to question 1. How can I use objects exposed to VBA from a display on another display code.

3) What are differences between prefix "Application." "Me."?

Thanks

Someone?
 
If you press F2 while in the VBA editor, you get a browser that is pretty helpful.

From there you can see what methods "Me." and "Application." offer. "Me." is a reference to the current display, it can be omitted most of the time, but is necessary if you use generic routines. In effect you can assume DisplayCode routines run like this:

Sub Private Animation_Start()
With Me
' your code
End With
End Sub

Also, F1 while in VBA editor gives VBA help instead of FTV help. Show makes a display visible, Load puts a display in memory but not visible (think background)
 
If you press F2 while in the VBA editor, you get a browser that is pretty helpful.

From there you can see what methods "Me." and "Application." offer. "Me." is a reference to the current display, it can be omitted most of the time, but is necessary if you use generic routines. In effect you can assume DisplayCode routines run like this:

Sub Private Animation_Start()
With Me
' your code
End With
End Sub

Also, F1 while in VBA editor gives VBA help instead of FTV help. Show makes a display visible, Load puts a display in memory but not visible (think background)

Thanks!
Since I'm a beginner on VBA I did'nt know the best way to seek info.
I will try these help files.
 

Similar Topics

Hi all. I'm running a VBA code on my FTView which is actually working, but everytime I open the display that calls the VBA code, it throws the...
Replies
28
Views
1,814
Greetings, I have this question: How can I add a tag, in my case LS:0 {#5} (literal string of tag #5), to a variable using VBA? I couldn't find...
Replies
4
Views
897
Hello Every one, I need a help on vba code for getting data from MSSQL server 2014 to display in FTview SE client version 12 . Thanks. Please...
Replies
4
Views
1,816
I've been messing around with trying to find a way to clear all PlantPAx AOI latched alarms via the Alarm Banner or Summary objects. So far, I can...
Replies
2
Views
1,740
I have a VBA on an alarm banner that calls a large number of pop-ups alarms based on changes of digital PLC tag value. Problem is that when the...
Replies
2
Views
2,325
Back
Top Bottom