Difference between revisions of "MC-Basic:TYPEOF"
Line 42: | Line 42: | ||
|SEE ALSO= | |SEE ALSO= | ||
* [[MC-Basic:COMMON SHARED ... AS LONG or DOUBLE or STRING or STRING OF UTF8|COMMON SHARED ... AS LONG or DOUBLE or STRING or STRING OF UTF8]] | * [[MC-Basic:COMMON SHARED ... AS LONG or DOUBLE or STRING or STRING OF UTF8|COMMON SHARED ... AS LONG or DOUBLE or STRING or STRING OF UTF8]] | ||
− | * [[ | + | * [[MC-Basic:TOASCII8$|TOASCII8$]] |
* [[Axystems:MC-Basic:TOUTF8$|TOUTF8$]] | * [[Axystems:MC-Basic:TOUTF8$|TOUTF8$]] | ||
[[Category:Axystems:MC-Basic:String_Manipulation|TYPEOF]] | [[Category:Axystems:MC-Basic:String_Manipulation|TYPEOF]] | ||
}} | }} |
Revision as of 08:42, 22 May 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