funmay
6 years agoContributor
How to put specify multiple List separator in a function
Hi,
How can i pass multiple list separation e.g comma[","] vertical line["|"] within a function to handle any parameter passed with any list separator.
See my eaxmple below,but i am not getting it
function TextString(array)
{
if(aqString["Contains"](array,",") == 0)
{
aqString["ListSeparator"] = ','
}
else if (aqString["Contains"](array,"|") == 0){
aqString["ListSeparator"] = '|'
}
/*Get the value of the first number*/
var FirstStringTobeginLooping = aqString["GetListItem"](array,0);
}