Applies To:
  • CitectSCADA 5.40

Summary:
CitectVBA does not support Global variables using Public, Dim (at module scope), and Static keywords. 

Solution:
CIT has confirmed this to be a problem in Citect for Windows versions 5.40r0. This problem has been fixed in version 5.41

The problem is addressed as follows:

Dim V As [type]

Public V As [type]

Static V As [type]

-when used outside of procedures will declare Global scope variables in CitectVBA that retain their values across procedure calls and can be accessed from command fields.

Static V As [type]

-when declared inside a procedure will have scope local to that procedure, but will retain its value between procedure calls.

 

Keywords:
 

Attachments