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 it so it wont reset?
My code (on both displays):
Public vbaint as Integer
Public Sub Display_AnimationStart()
On Error GoTo ErrHandler
vbaint = vbaint + 1
Exit Sub
ErrHandler:
Application.LogDiagnosticsMessage "Error occurred in " & ThisDisplay.FullName & _
" Display_AnimationStart(). Error # " & Err.Number & ": " & Err.Description, ftDiagSeverityError
End Sub
I dont want to use HMI or PLC tags to store it, because vbaint value should be local to the runtime application of each operator.
How can I do it so it wont reset?
My code (on both displays):
Public vbaint as Integer
Public Sub Display_AnimationStart()
On Error GoTo ErrHandler
vbaint = vbaint + 1
Exit Sub
ErrHandler:
Application.LogDiagnosticsMessage "Error occurred in " & ThisDisplay.FullName & _
" Display_AnimationStart(). Error # " & Err.Number & ": " & Err.Description, ftDiagSeverityError
End Sub
I dont want to use HMI or PLC tags to store it, because vbaint value should be local to the runtime application of each operator.