Parse String to Split it like in Wise

Hi

This is related to my other request about "Prompt for Variables". It would be nice to have an action that works like Parse String - Split value at first/last occurrence of pattern, in Wise: Take String A split it into B and C , at the occurance of pattern D (without the pattern D)- this enables you to easily parse a string like :

A : 1234;89  into

B : 1234

C : 89

(and if the pattern is CRLF, put it in a loop and get all the values of the string you selected in the Check list option)

Thanks , Daphna

Do you know that String SubString does something pretty similar?

Steve

Hi Daphna,

You can also do this with the JScript string split method, ie:

var A = “1234;89”;
var output = “”;
var arr = A.split(";"); // Splits A into an array with each element separated by ;
for(var i = 0; i < arr.length;i++)
{
output = output + “\r\n” + arr[i];
}

… or something like that.

Regards,

Angus