FTViewSE - Need help at VBA - Display command

Sorry, I forgot to include the import from the library, Put this above the function definition:


Code:
'*******************************************************************
' Function Declarations:
' GetComputerName is imported from kernel32, and used to determine
'                 exactly what computer this routine is running on.
'                 Logging should only be done by ONE PC.
'*******************************************************************
Private Declare Function GetComputerName Lib "kernel32" _
Alias "GetComputerNameA" (ByVal lpBuffer As String, nSize As Long) As Long
 
Sorry, I forgot to include the import from the library, Put this above the function definition:


Code:
'*******************************************************************
' Function Declarations:
' GetComputerName is imported from kernel32, and used to determine
'                 exactly what computer this routine is running on.
'                 Logging should only be done by ONE PC.
'*******************************************************************
Private Declare Function GetComputerName Lib "kernel32" _
Alias "GetComputerNameA" (ByVal lpBuffer As String, nSize As Long) As Long

Ok. How do I create a tag using the ComputerName variable?
 
It's View. AFAIK, you cannot create new tags from VBA, so you will have to create the tag(s) manually first.


You could just create a tag folder, with tags for "Station1, Station2, Stationxxx", and then use the computername from VBA to choose which one to reference.
 

Similar Topics

I have a alarm banner A display that shows on the botton of the screen and that must shown along with any of two specific main centered displays...
Replies
2
Views
2,040
I am attempting to access HMI tag properties (Description, Minimum, Maximum values) to populate a numeric input. Is there a clean way to do this...
Replies
0
Views
373
Hello everyone. I'm asking for help with the following problem: in FTView SE 13.00 for the AlarmEventSummary1 object, you need to add the filter...
Replies
0
Views
599
Hi all, I've got a bit of a need to convert an integer (and a real in another situation) to a string with a particular format. This seems possible...
Replies
11
Views
2,447
I want to have two displays that uses the same VBA variable "vbaint". But when I change between them, the variable seems to reset. How can I do...
Replies
4
Views
2,814
Back
Top Bottom