Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Outputting characters from notepad

Status
Not open for further replies.

Jay2003

Programmer
Feb 26, 2003
147
0
0
GB
Hi,

If I had a string of 20 characters would it be possible using VBS to split these into 4 different and place them into a table using ASP/VBS

Regards

Jason
 
Yes.

If all 4 "fields" are separated by a delimmitting character such as a comma or tab then you could use the Split() function to break it into an array.

Alternatively if the fields are a set lenght you could use the Mid() function to pull only the characters that you want from the string.

Another option is to user InStr() in conjunction with Mid() if your string is a little more complex.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top