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
How to delete a cookie using vbscript?
Hi Friends, I have an issue like the describe below: I'm using QTP and I'm testing on SharePoint. As you knoe, SharePoint has a customize function for user, so that, If I add an object Web Table at the first time, that object was recognized by "index" and "html tag", after that, if someone change the display of web part, the "Index" of my object was changed as well and QTP unable to select that Web Table. Can you guide me how to identify or anyway to keep that Web Table object as unique object? Thanks a lot.
Mention what is select case statement?
Explain different types of segment?
What is Procedure or Subroutine in VB Script?
What is the purpose of regexp object in vbscript?
did any one attended interview in applabs if you had gone through plz tell me the procedure
What are string functions in vbscript?
Explain about vb script?
hi what is called GUI in QTP 8.2 and how can we test the apllication using GUI?
Explain about arrays in vb script?
What is the scope of a constant declared using public?
Explain about the asc function?
Can we create Crystal Report object in QTP?If yes then what it is and what are its various properties?
Explain sga memory structures?