Xbasic

*CONCAT_LINES Function

Syntax

Result_List as C = *CONCAT_LINES(C lines1[,C Lines2[...]])

Arguments

Result_List

The CR-LF delimited list produced by *CONCAT_LINES().

lines1

The character string that will receive the addition.

Lines2

The character string to add to Line1. Optional. More character strings to add to Line1.

Description

Appends lines (adding needed CR-LFs) eliminates blank lines.

Discussion

The *CONCAT_LINES() appends lines to list, adding CR-LF delimiters, and eliminating blank lines. *CONCAT_LINES() is much faster than string addition.

Example

dim ff as C
ff = *concat_lines(ff, "line1")
ff = *concat_lines(ff, "line2")
ff = *concat_lines(ff, "")
ff = *concat_lines(ff, "line4")
? ff
= line1
line2
line4

See Also