Mioplanet Documentation Center
Resources and Help
HomeProductsMioScriptJavaScriptTechNotesPHP
   Home | MioScript | mio.code.compile SEARCH    

  Functions
mio.code.compile
mio.code.save
mio.create
mio.currentHeader.get
mio.currentHeader.set
mio.extract
mio.header.get
mio.rebuild
mio.run

  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
mio.code.compile

Language: MioScript
Product: MioFactory


Syntax

mio.code.compile(targetArray, CodeLine)


Parameters

ARRAYtargetArrayName of an array where the compiled line is to be stored.
INTCodeLineLine of code to be compiled.


Return value

1 if success, Error code if failed.



Description

This function converts a MioScript code line to a compiled version that can be interpreted by MioEngine.

The return can be one of the following values:

1: Success
2: Cannot store code line: The specified array was not found.

100: Unterminated String
101: Wrong number of parenthesis
200: Syntax Error
201: Syntax Error in a condition. Check for a misplaced apostrophe, extra parameter or missing comma
202: Incorrect If construction