onStart - event of the PmaObject object
Description:
The event is triggered for each object in runtime only once at the beginning.
Here it is suitable, for example, to perform various initializations of the object, as, for example, reading data from the file, etc.
The event is triggered after the
PmaRoot.onAppStartBegin event and before the
PmaRoot.onAppStartEnd event.
Parameters:
pMe | (Object) Reference to the PmaObject object where the event rises. |
pEvent | (Object) Reference to an object describing detailed information about the specific event.
The pEvent parameter is not used here because this event does not need any additional information. |
---|
Example:
Reading a value from the INI file and writing it into the variable in the application.
JavaScriptVBScriptSelect and copy to clipboard
var val1 = Pm.IniFileRead("#cfg:file.ini", "Data", "Value1", "1.0", 4);
pMe.Pm("/Data").Value = val1;
Dim val1
val1 = Pm.IniFileRead("#cfg:file.ini", "Data", "Value1", "1.0", 4)
pMe.Pm("/Data").Value = val1