Mioplanet Documentation Center
Resources and Help
HomeProductsMioScriptJavaScriptTechNotesPHP
   Home | MioScript | mio.create 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.create

Language: MioScript
Product: MioFactory


Syntax

mio.create(sourcePath, targetFilename, FilesList, ObjectID, ParentID, systemString, infoString, Family, sourceCode)


Parameters

STRINGsourcePathPath to the files to be stored in the mio file.
STRINGtargetFilenameName of the target mio file.
ARRAYFilesListOptional.
List of files to include in the mio file.
All files if set to NULL.
IDObjectIDOptional.
ID (16 chars) of the mio file to be created.
IDParentIDOptional.
ID (16 chars) of the mio application that create the mio file.
STRINGsystemStringOptional.
Internal File Attributes (50 chars).
STRINGinfoStringOptional.
Internal File Attributes (200 chars).
STRINGFamilyOptional.
Name of the family (group of mio files, 10 chars).
BOOLsourceCodeOptional.
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.