about uscontact usnewsthe teamcareersresourcessite map
   
 
question from Biscuit Man
question asked by Biscuit Man
date asked 15 January 2002
subject Extracting numbers from a combined string
description I have a list of combined material numbers and descriptions, separated by a blank character. I want to extract the material number into a new column, primarily to sort it. The material number can be 2 to 6 characters before the blank character followed by the description i.e. 123 WWheel, 24351 JDodger. How can I test for, and assign to a variable, the number of characters before the blank.

Microsoft VBScript runtime error '800a01f4'

Variable is undefined: 'sUserName'

/support/showanswer.asp, line 305