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


Please Help Members By Posting Answers For Below Questions

How to delete a cookie using vbscript?

553


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.

2552


Mention what is select case statement?

545


Explain different types of segment?

565


What is Procedure or Subroutine in VB Script?

604






What is the purpose of regexp object in vbscript?

555


did any one attended interview in applabs if you had gone through plz tell me the procedure

1852


What are string functions in vbscript?

656


Explain about vb script?

747


hi what is called GUI in QTP 8.2 and how can we test the apllication using GUI?

1787


Explain about arrays in vb script?

604


What is the scope of a constant declared using public?

558


Explain about the asc function?

603


Can we create Crystal Report object in QTP?If yes then what it is and what are its various properties?

3032


Explain sga memory structures?

579