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
what is used of Property........End Property loop ? how to write the script for it?
What is sql loader? Explain the files used by sql loader to load file?
Write a Program to add 2 numbers without using operators (+,-) and without using third variable. Note: Use VBScript only Hint: You can use other operators like '/' & '*'(Division & Multiplication)
What is variant in vb script?
Mention characteristics of sub procedures?
Compare java script and vb script?
How will you release the memory acquired by an array variable in vbscript?
Mention what if you do not specify anything when you call a procedure?
How to Import data from a file (file is on the desktop) to the data table
What is the difference between do until loop and do while loop?
Hi Friends my Question is very simple,in Manual testing when we click on a hyper link it directs us to the relavent page or it re-directs us to the current page,so there we can easily write testcase but same thing if we do in automation script using QTP & need to generate report using Reporter.report event how we will do it?thanks in advance...
how to increasing the numbers in a given text box please write a vb script
filter the array values without using filter function?
What are the rules to name variable in vbscript?
Which operator can be used to check if two numbers are equal or not in vbscript?