|
|
|
|
Functions
MioScript Reference
|
|
Syntax
| mio.create(sourcePath, targetFilename, FilesList, ObjectID, ParentID, systemString, infoString, Family, sourceCode) |
Parameters
| STRING | sourcePath | Path to the files to be stored in the mio file.
| | STRING | targetFilename | Name of the target mio file.
| | ARRAY | FilesList | Optional. List of files to include in the mio file. All files if set to NULL.
| | ID | ObjectID | Optional. ID (16 chars) of the mio file to be created.
| | ID | ParentID | Optional. ID (16 chars) of the mio application that create the mio file.
| | STRING | systemString | Optional. Internal File Attributes (50 chars).
| | STRING | infoString | Optional. Internal File Attributes (200 chars).
| | STRING | Family | Optional. Name of the family (group of mio files, 10 chars).
| | BOOL | sourceCode | Optional. Default is false. Set to true if the target mio file should include the MioScript source code (.k files) |
Return value
Status. can be: 0: Success. 1: Cannot create target file. 2: Too many files (max 5000). 3: A file is locked. 4: Cannot read a source file. 5: A file name is too long (max 45). |
Description
Create a mio file and save it to disk.
A mio file is composed of code and data. The code is in MioScript and is interpreted by MioEngine.
To run a mio file, drag the file and drop it on the MioEngine.
It is possible to rebuild the mio file currently running with mio.rebuild.
For more information: Mio File Format. |
|
|
|