8.3.24 IsMultiChar (check whether a string is two-byte characters)
- Purpose
-
Checks whether a string is two-byte characters, and returns True or False.
- Syntax
IsMultiChar (String)
- Argument
-
- String
-
Specify the string itself or a variable that stores this value.
False is returned if you specify a zero-length string ("").
- Description
-
The IsMultiChar command checks whether the specified string contains two-byte characters only, and returns True or False as the command execution result.
- Example 1
' Check the value of global variable seqNo, and display "#" ' before a two-byte character or "number" before a one-byte ' character. Dim buff buff = GetGV ( "seqNo" ) If IsMultiChar ( buff ) Then MessageBox ( "item-number" + buff) Else MessageBox ( "#" + buff ) End If
- Example 2
' Check whether the string stored in local variable buff ' consists of all two-byte characters. Dim buff buff = "" If IsMultiChar ( buff ) Then MessageBox ( "All characters are two-byte characters." ) Else MessageBox ( "Characters other than two-byte characters exist." ) End If
- JP1/Script version
-
Supported from JP1/Script 06-00.