PDA

View Full Version : asp split / substr


crmpicco
04-01-2005, 12:24 PM
This code:


<%
response.write pnrxml.documentElement.childNodes.item(1).childNodes.item(j).childnodes.item(14).text
%>



gives me either:

Business Class
Economy Class


____________

How do i cut the value by the space?

So that the value is only Business or Economy?

Picco

crmpicco
04-01-2005, 12:35 PM
also at:

http://p2p.wrox.com/topic.asp?TOPIC_ID=28686

glenngv
04-04-2005, 11:13 AM
http://www.devguru.com/Technologies/vbscript/quickref/split.html