Introduction
The OWBasic Standard Library (OSL) contains functions and procedures which fulfill the most frequent tasks that occurre in OWBasic programming.
How the OSL works:
Every program that uses a routine from OSL has to define a constant named <component token>_USED (f.e. TI_USED for the Timer component) that specifies the function groups to be used. Every component can have 16 function groups maximal where every function group is represented by one bit of the constant. So, if both the basical functions of the Timer component and the WAIT function are to be used, TI_USED must have the value 101 binary respective 5 decimal or 0x0005 hexadecimal:
In addition the component's library which consists of the prefix "Std" and the component's name (the library of the Timer component is named "StdTimer") must be included:
OWBasic Standard Library Components:
component | token | |
Std | STD | basical functions |
GUI | GUI | GUI (Graphical User Interface) objects |
Timer | TI | Multiple timers |
Icon | I | Loading icon archives |
Memo | M | dialogues for selecting a memo category or a memo |
QM | QM | dialogue for selecting a Quick-Memo |
|