CitectVBA Programming Reference > Understanding CitectVBA Language Basics > CitectVBA Files

CitectVBA Files

CitectVBA code scripts can be saved to file, can include comments, statements, various representations of numbers, can handle many different data types, and can have multiple and nested control structures. However, CitectVBA is primarily provided with CitectSCADA to interact with ActiveX objects.

CitectVBA files are ASCII text files stored in ANSI format with a BAS extension (filename.BAS), and are known as file modules.

CitectVBA file modules can be viewed and edited in any text editor program. They can be used in CitectSCADA, but must be saved as 'text with linebreaks' with a '.BAS' file extension or Citect will not be able to open the file.