Hitachi

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


8.3.3 Len (calculate the length of a string)

Purpose

Returns the length of a string.

Syntax
Len (String)
Argument
String

Specify the string itself or a variable that stores this value.

Description

The Len command returns the number of characters in a string, or the number of characters in the string stored in a specified variable. One two-byte-character and one one-byte-character are both handled as one character.

Example
' This code stores 6 in variable length1.
Dim length1
length1 = Len ("ABCDEF")
JP1/Script version

Supported from JP1/Script 01-00.