Digitalcandy
IS-IT--Management
I have some data such as the following:
L41-0080H1/H1-18X24
L43-0050H1/H0-9X12
I'd like to be able to split it at the second hyphen so that it reads...
L41-0080H1/H1
L43-0050H1/H0
I have the following formula, but it splits at the first hyphen, not the second.
Stringvar array MatCode := Split({MaterialCode.MatCode},"-");
MatCode[1];
So with the above code, my sample data ends up looking like...
L41
L43
L41-0080H1/H1-18X24
L43-0050H1/H0-9X12
I'd like to be able to split it at the second hyphen so that it reads...
L41-0080H1/H1
L43-0050H1/H0
I have the following formula, but it splits at the first hyphen, not the second.
Stringvar array MatCode := Split({MaterialCode.MatCode},"-");
MatCode[1];
So with the above code, my sample data ends up looking like...
L41
L43