Hitachi

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


8.3.19 Str (convert a number to a string)

Purpose

Returns a specified numeric value as a string.

Syntax
Str (Number)
Arguments
Number

Write the number to be converted or specify a variable that stores this value.

If you specify a string in Number, that string will be returned.

Description

The Str command returns the specified numeric value as a string.

Examples
' This code stores 2 in variable string1.
Dim string1
string1 = 1 + 2 - 1
 
' This code stores "12-1" in variable string2
Dim string2
string2 = Str (1) + Str (2) + Str (-1)
 
' This code stores 11 in variable string3.
Dim string3
string3 = Str (1) + 2 - 1
JP1/Script version

Supported from JP1/Script 05-20.