Hitachi

JP1 Version 12 JP1/IT Desktop Management 2 - Asset Console Creating an Access Definition File Guide


$LENGTH (get string length)

$LENGTH acquires the length in bytes of the specified character string.

Organization of this page

Syntax

return-value=$LENGTH(character-string)

Values

Status

The following table lists and describes the possible statuses:

Status

Description

NORMAL

Normal end

NODATA

ERROR

Script execution interrupted

An invalid argument was specified, or an error other than the above occurred.

Legend:

—: Not applicable

Example

The following example acquires and outputs the length of character string string length:

[SET_VALUE]
  DATA = 'string length'
  VAL = $LENGTH(DATA)
  MSG = 'LENGTH = ' + VAL
  $ECHO(MSG)
Execution result:

LENGTH = 13