13

Simple request (hopefully) here.

I have a string which whilst it varies in length, will always need the last 6 characters removed.

Using a 3rd party web service, so I'm unable to edit the response in the XML before outputting.

If anyone can suggest a quick way of trimming them off i'd be really grateful!

here is the string i'll be using:

#daysEvent[iItem].XmlChildren[iEvent].XmlChildren[16].XmlText#

Thanks!

Peter Boughton
  • 110,170
  • 32
  • 120
  • 176
Simon Hume
  • 982
  • 3
  • 11
  • 27

1 Answers1

33
Left(mystring, len(mystring)-6)
Nick Van Brunt
  • 15,244
  • 11
  • 66
  • 92