Xbasic

*LINE_INSERT Function

Syntax

New_String as C = *LINE_INSERT(text as c,insert as c,line as n)

Arguments

New_String

The modified text containing line insertion(s).

text

The original unmodified text. Character

insert

The text to insert. Character

line

The number of the first line to replace. Numeric

Description

The *LINE_INSERT() function inserts line(s) into a string starting at the line position defined by Start_Line.

Example

lines = <<%str%
one
two
three
four
%str%
? *line_insert(lines, "TWO AND A HALF", 3)
= one
two
TWO AND A HALF
three
four

See Also