if there is any string in a given format like as "company
name employeecode date" then we have to fetch employeecode
form string
for ex-string is "capgemini12345june2013" then we have to
fetch 12345 by using vb script so guys how can we do that
please reply it.
Answer Posted / sriraja
str="capgemini12345june2016"
strsplit=split(str,"june")
convstr=cstr(strsplit(0))
for i=1 to len(convstr)
strmid=mid(convstr,i,1)
if isnumeric(strmid)=true Then
temp=temp&strmid
End if
Next
Print temp
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Which operator is used to perform the comparison among 2 operands in the vbscript language?
What is vbscript language used for and which earlier language is it modeled upon?
I want to run QTP script on Linux server is it possible to do this by connecting Windows to Linux through VPN/Terminal Server and just run the script on Linux server.
How to Import data from a file (file is on the desktop) to the data table
Hello Guys, If any body looking for "worksoft certify tool training in bangalore", please contact me aimansaud@gmail.com
Write a code to print numbers from 5 to 0?
Explain about tristate constants?
What is difference between vbscript and vba?
did any one attended interview in applabs if you had gone through plz tell me the procedure
If else for do while select in vb script?
What is vbscript?
I have an excel sheet with multiple ID's in a column. Now i need fetch those ID's in an application and check whether if it already exist in the DB. If not then i have to go with the process of inserting them in the DB. If it exists then i need to skip that ID and move to the next ID and check the same and proceed. How can i do that with for loop and if condition?
What if you do not specify anything when you call a procedure?
What is the use of the date function in the vbscript language?
What is dictionary object in vbscript? Explain?