Not getting a lot of replies on this site these days, its a pitty always had such quick response here. Any way here is my solution:
global proc string[] cm_CSVrowBreakup(string $string){
int $wordCount = 0;
string $nextChar;
string $currentWord = "";
string $ReturArray[];
int $loops = size($string);
for($i=0;$i<$loops;$i++){
$nextChar =substring $string (1+$i) (1+$i)
;
if ($nextChar == ","){
$ReturArray[$wordCount] = $currentWord;
$currentWord ="";
$wordCount++;
}
else{
$currentWord = $currentWord + $nextChar;
}
}
$ReturArray[$wordCount] = $currentWord;
return $ReturArray;
}