Hitachi

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


8.3.16 AddStr (concatenate strings with delimiters inserted)

Purpose

Performs string concatenation on two or more strings and returns the concatenated string with specified delimiters inserted.

Syntax
AddStr ([SeparateChar], [Option], String1, String2 [,String3, ...])
Arguments
SeparateChar

Specify the delimiter as a character string or as a variable that stores this value.

This value is optional. If you omit this value, no delimiters are inserted.

Option

Specify either of the following values:

Value

Meaning

NeedDq

Enclose the result string with double quotation marks only if String1 to String5 include a comma, tab, or space taken as a delimiter.

AllDq

Enclose the result string with double quotation marks regardless of the strings specified in String1 to String5.

This value is optional. If you omit this value, NeedDq is assumed.

String1 to String5

Write the strings to be concatenated. Specify each as a character string or as a variable that stores this value. You can write up to five strings.

Description

The AddStr command performs string concatenation on two or more strings and returns the concatenated string with specified delimiters inserted. The concatenated string is truncated to 1,024 characters if it exceeds this length.

Examples
' This command stores ""Code 291" Price "3,000"" in
' variable string1.
Dim string1
string1 = AddStr ("", ,"Code 291", "Price", "3,000")
 
' This commands stores ""Code 291" "Price" "3,000"" in
' variable string2.
Dim string2
string2 = AddStr ("", AllDq, "Code 291", "Price",
                  "3,000")
JP1/Script version

Supported from JP1/Script 05-00.