MC-Basic:TYPEOF

From SoftMC-Wiki
Revision as of 16:01, 13 December 2010 by Arwiebe (talk | contribs) (Created page with '{{MC-Basic |SHORT FORM= |SYNTAX= TYPEOF(''<string>'') |AVAILABILITY= Avilable since version 4.5.10 |DESCRIPTION= This function returns a number representing the type of the s…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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

See Also