Hitachi

JP1 Version 11 JP1/Script Description and Reference (For Windows Systems)


8.3.22 IsUpper (check whether a string is uppercase)

Purpose

Checks whether a string is uppercase characters, and returns True or False.

Syntax
IsUpper (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 IsUpper command checks whether the specified string contains all uppercase characters, and returns True or False as the command execution result.

Example 1
' Check whether the value of global variable Level is
' "A" or "a".
Dim buff
buff = GetGV ("Level")
If buff = "A" Then
  If IsUpper (buff) Then
    MessageBox ( "Level : Large A." )
  Else
    MessageBox ( "Level : Small A." )
  End If
End If
Example 2
' Check whether the string stored in local variable buff
' consists of all uppercase characters.
Dim buff
buff = "SCRIPT"
If IsUpper ( buff ) Then 
    MessageBox ( "All characters are uppercase characters." )
Else
    MessageBox ( "Characters other than uppercase characters exist." )
End If
JP1/Script version

Supported from JP1/Script 06-00.