Mioplanet Documentation Center
Resources and Help
HomeProductsMioScriptJavaScriptTechNotesPHP
   Home | MioScript | app.init SEARCH    

  Functions
app.autoRestart
app.booster
app.cancelClose
app.close
app.filename
app.getParam
app.icon
app.init
app.install
app.language
app.maintenance
app.minimize
app.name
app.openAtStartup
app.restart
app.restore
app.setup
app.title
app.uninstall
app.uninstall.create
app.uninstall.remove

  Events
event.initialize
event.load
event.terminate

  MioScript Reference
> Statements
app...
browser...
dialog...
disk...
draw...
extern...
filename...
keyboard...
menu...
mio...
mouse...
num...
path...
pushButton...
reg...
RS232...
sci...
screen...
shortcut...
sound...
str...
system...
time...
var...
window...

Function
app.init

Language: MioScript
Product: MioFactory


Syntax

app.init(productId, name, version, build, log, runAsProcess)


Parameters

PIDproductIdProduct ID.
Uses {APP_ID} for the ID of the current product.
STRINGnameProduct Name.
Uses {APP_NAME} for the ID of the current product.
STRINGversionVersion Number.
Uses {APP_VERSION} for the version number defined in the tab Settings.
STRINGbuildBuild Number.
Uses {APP_BUILD} for the version number increased automatically by MioFactory when you publish your application.
BOOLlogSet to {CREATE_LOG} to enable or disable the log file as set in the tab settings.
BOOLrunAsProcessDefault is false.
When this parameter is set to true, the application is not visible in the list of applications in the Windows Task Manager. The application is listed only in the list of processes, and is not visible when the user press ALT+TAB to switch from an application to another.


Return value

No value is returned.


Description

Initializes the application.

This function do various tasks such as setting the application icon, creating an unique user Id, initializing the log file a variables.

When found, the file app.ico is used as the application icon. This file should be stored in the application folder.

You should call this function in event.load as shown below.

Note: This function is defined in the library klib.k and is linked automatically.




MioScript Sample Code

event.load
    app.init("{APP_ID}", "{APP_NAME}", "{APP_VERSION}", "{APP_BUILD}", "{CREATE_LOG}")
    ...
event.end