Difference between revisions of "MC-Basic:TYPEOF"
m (Text replace - "Read-Only" to "Read only") |
m (Text replace - "''<return value>''" to "<''return value''>") |
||
Line 14: | Line 14: | ||
|TYPE= | |TYPE= | ||
''<string>'': String<br> | ''<string>'': String<br> | ||
− | '' | + | <''return value''>: Long |
|RANGE= | |RANGE= | ||
''<string>'': string | ''<string>'': string | ||
− | '' | + | <''return value''>: 0, 1, 2 |
|UNITS= | |UNITS= |
Revision as of 09:37, 20 March 2014
This function returns a number representing the type of the string (0 for no-type, 1 for ASCII-8, or 2 for UTF-8).
Syntax
TYPEOF(<string>)
Availability
Avilable since version 4.5.10
Type
<string>: String
<return value>: Long
Range
<string>: string
<return value>: 0, 1, 2
Scope
Configuration, Task or Terminal
Limitations
Read only
Examples
?TYPEOF(“…”) ‘ returns 0
?TYPEOF(TOASCII8$(“…”)) ‘ returns 1
?TYPEOF(TOUTF8$(“…”)) ‘ returns 2