MakeCSV-func
This function converts a string which has a delimiter into CSV format.
string MakeCSV(string str$ [, int quote, int output_delim, string input_delim$])
str
quote
input_delim
output_delim
Returns a CSV formatted string.
string str1$="This is test value"; string str2$=MakeCSV(str1$, 2, 1)$; str2$=; //should return "This";"is";"test";"value"
string str1$="This|is|test|value"; string str2$=MakeCSV(str1$, 1, 0,"|")$; // Specify source delimiter str2$=; //should return 'This','is','test','value'