DatatypeToStr
The DatatypeToStr function returns the data type name corresponding to the numeric data type code. For example passing 5 returns "float".
sValue = DatatypeToStr( number )
The script fragment below shows how to create a text output window with a specified placement inside the main Mira window. We want the text window to stretch horizontally from 10% to 70% of the main window width and vertically from 20% to 60% of the main window height. Below is a function that does this:
|
-- data type number 5 |
|
-- get the corresponding name string |
|
-- result: type=5, name="float" |