|
|
|
|
TechNotes
MioScript Reference
Products
|
|
TechNote Programming MioScript | Language: MioScript
|
| | MioScript is an event driven scripting language. MioScript code is executed when an event is raised.
For example, the following code is executed when the application is loaded:
event.load
alert("Hello, World")
app.close()
event.end
|
Comments can be added with // as follow:
// Code to be interpreted when the application is loaded
event.load
alert("Hello, World")
app.close() // Close the application
event.end
|
|
Variables| |
Variables stores data of various types: strings, integers, arrays or boolean values.
The content of the variable is lost when the application or widget is closed.
MioScript: Variables and Data Types
Variables can be saved on the local disk or in the registry database: disk..., reg....
|
Events and Functions| |
Events and functions are both blocks of code.
Functions can be called to be interpreted immediately and return a value.
Events can be called with an interval or can be called by MioEngine for your code to react to an event.
MioScript: Events
MioScript: Functions
|
Conditions| |
Conditions make it possible to execute a code or another depending of the result of a comparison.
MioScript: Conditions
|
Loops
|
|
|