ClassLibInfo
The ClassLibInfo table contains information about the Lua class library used by Mira. To get information about the class library being used, simply examine Properties in the table, as shown below.
Data from the ClassLibInfo table may be accessed using the table name, ClassLibInfo and the member name. For example, to fetch the major version number, get the value of ClassLibInfo.nMajor. The table members are listed below.
Property: |
Purpose: |
nMajor |
Returns the major version as a number. |
nMinor |
Returns the minor version as a number. |
sDate |
Returns the date of release as a string |
sCopyright |
Returns the copyright information as a string. |
sComments |
Returns additional comments as a string. |
The following code prints all ClassLibInfo data in the script default text message window. Notice the concatenation operator .. as the two dots at the right end of the line for the Printf command; this operator connects the string that is broken over multiple lines.
|
-- make an alias to reduce the typing effort! |
|