I have a variable: contract_code_full
An example value for this variable is '40/IT5AFKLE'
I want to split it and store what is BEFORE the '/' in a new variable. i.e. the '40'
My Code:
<%
contract_code_full = Mid(Matches.Item(9).SubMatches(0), 2) & "<br />"
response.write "Contract Code (Full) = " & contract_code_full & "<br>"
contract_after_split = Split(contract_code_full,"/")
response.write "con = " & contract_after_split & "<br>"
%>
response.write "Contract Code (Full) = " & contract_code_full & "<br>" WORKS
response.write "con = " & contract_after_split & "<br>" DOESNT WORK.
Picco
www.crmpicco.co.uk