is an object oriented scripting language. Its syntax belongs to the C/C++/Java
famiy. However there is no connection with the Java
language (except for the similar syntax).
This scripting language is used in the PROMOTIC system in the following components:
- Design of Web panels
, that are to be functional in different browsers than the MS Internet Explorer
(i.e. in Firefox
scripts in the graphic item events (e.g. in the PmiButton.onButtonUp
event). Before that, you have to set the "Scripting language settings
" configurator in the corresponding PmPanel
- In the PmiCanvas graphic item, in the drawing event onDraw
language regardless if the corresponding PmPanel
object is set in the "Scripting language settings
" configurator to "vbscript (obsolete)"
is a high level language that supports many constructions valued by programmers (a set of own functions and methods, dynamic objects, first-class functions, prototyping, regular expressions, inheritance etc.). Although the PROMOTIC application designer is not forced to use these higher functions
). This way the language becomes very simple to use
, even simpler than the VBScript
objects are listed below:
object has many methods for working with text strings. But the PROMOTIC uses the String
data type, which is a primary data type, not an object. For working with this type the Pm string methods
can, for example, be used.
object has many methods for working with date and time. The PROMOTIC system stores date and time as basic Date
type (it is a VBScript
language data type).
The method Pm.CreatePmDateObject can be used to transform the values of the Date type into a PmDateObject object. This object has its own methods for working with date and time (read and write hour, day, month, etc.).
See also: Pm date and time methods.
object represents 1-dimensional value array. The PROMOTIC system uses the Array
object can be 1-dimensional or 2-dimensional and all the features of this object are adapted to the needs of the PROMOTIC system. See How to use array of values in the PROMOTIC system