The language in which algorithms in PROMOTIC are written, is Visual Basic (more precisely said, its scripting part), often marked as VBScript. It goes probably about the simplest computer language that can be easily learned, but at the same time it is high-performing and optimized language.
VBScript vs. Visual Basic and VBA:
Visual Basic is created so as it would help developers quickly and easily to create otherwise complicated OS Windows applications. Its introduction was a revolution. The language represented for programming the same as the text editor WYSIWYG did for creating documents.

Visual Basic for Application (VBA) is the subset of the Visual Basic language. This means that it is similar to it but it hasn't got all its capability. VBA is integrated with applications like Microsoft Excel. In the Microsoft Office package there is integrated VBA into the Microsoft Word application and all other members of the Office product family.

VBScript is the subset of VBA. It goes about the very simple yet full programming language. It doesn't offer all comforts of the Visual Basic and VBA languages.

VBScript uses the method "sand castle" with respect to the security. Its meaning lies in that VBScript reserves a part of resources and memory of the computer for itself. It can do anything, it wants in the sand castle but it can never leave it and damage the data in the rest of the computer memory. It results in that pure VBScript cannot access the computer memory neither create or work with files on the harddisk. In practice, all statements that were "dangerous" in some manner (which means that they could be used for creating a virus), were removed.

Thus we get a very safe environment on one side, but we lose a lot of important and required possibilities at the same time. Like always, the solution exists. In VBScript it is possible to use objects. Each object can have lots of methods, and these methods can be created so that they can do nearly everything. Each Promotic object (PmPanel, PmTimer, etc.) is understood as the object in VBScript, and all its methods and properties can be called. At the same time the special and unique Pm object can be used in VBScript that contains all required methods which don't belong to any concrete Promotic object. In this object there are, for example, methods for the access to the disk. By this, the VBScript language is extended beyond its limits.

For the initial familiarization with the VBScript language and its using in the PROMOTIC system we recommend to go through the chapter PROMOTIC Coursebook, section Out First Script.
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice