|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Hi, can u please help me with string handling?
I have MS Access DB which has a table called [schedule] and in the field [class_id], I have Lec1, Lec3, Tut1, Tut2, and so on. I need to write VB script which will read the first 3 characters (i.e. Lec or Tut) and the 4th character (number 1 to 8) separately. So, the sample output from the data 'Lec3' in the DB will be something like, ------------------------------------ TYPE: Lecture NUMBER: 3 ------------------------------------ Is there any string handling script I could use? Need suggestions. Thanks in advance. Reb. |
|
#2
|
||||
|
||||
|
look for the string functions here -> http://www.w3schools.com/vbscript/v...f_functions.asp
|
|
#3
|
|||
|
|||
|
left = mid(string,1,3)
fourth = mid(string,4,1) sweet link by the way ronin |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > HELP! string handling |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|