Indy 9 | Content | Index | Reference

CommaAdd
Example, Unit: IdStrings
Constructs a comma-delimited list of values.

    function CommaAdd(Const AStr1: String; Const AStr2: String): string;

Unit
IdStrings
Parameters
Const AStr1: String
Inital value in the list. AStr2 - Final value in the list.
Description
CommaAdd is a String function used to construct a comma-delimited list containing the values in AStr1 and AStr2. CommaAdd appends a comma to the value in AStr1 followed by the value in AStr2. If AStr1 contains an empty string (''), the return value for the function contains only the value in AStr2.

Created with Doc-O-Matic 2 donated to Project JEDI. Commercial license available from the Doc-O-Matic site.