Xbasic
crlf_to_comma Function
Syntax
dim result as C = crlf_to_comma(Source as C)
Arguments
- SourceCharacter
A list of items, each separated by a comma.
Returns
- resultCharacter
Returns a comma delimited list. If Source does not contain a CR-LF character, returns Source.
Description
Converts a CR-LF delimited list to a comma delimited list.
Discussion
The crlf_to_comma() function converts a CR-LF delimited list to a comma delimited list.
Example
dim colors as C colors = <<%str% red orange yellow green blue purple %str% ? crlf_to_comma(colors) = "red,orange,yellow,green,blue,purple"
See Also