Xbasic

CRLF_TO_COMMA Function

Syntax

CR-LF_List as C = CrLf_to_Comma(C Source)

Arguments

CR-LF_List

A list of items, each separated by CR-LF codes.

Source

A list of items, each separated by a comma.

Description

Converts a CrLf delimited list to a comma delimited list.

Discussion

The COMMA_TO_CRLF() function converts a CR-LF delimited list to a comma delimited list.

Example

dim list as C
list = <<%str%
aaron
bob
charles
david
%str%
? list
= aaron
bob
charles
david
? crlf_to_comma(list)
= "aaron,bob,charles,david"

See Also