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 are the rules to name variable in vbscript?
What are the special sub-types in vbscript?
Which object is used to work with the excel sheets in the vbscript language and what statement is used to create this object?
Explain the arrays in vb script?
How to access array data?
Mention what is the main difference between function and sub-procedure?
Which operator is used to perform the comparison among 2 operands in the vbscript language?
Which operator is used for fetching the modulus of the 2 numbers in the vbscript language?
What is the use of the instr function?
about vb scripting programs this type of all question& answers
Which operator can be used to check if two numbers are equal or not in vbscript?
How will you get the last occurrence of one string within another string using vbscript?
How to identify column in VSFlexgrid? My VSFlexgrid window is identified as 'Active X Control'
Description.Create
Hello Guys, If any body looking for "worksoft certify tool training in bangalore", please contact me aimansaud@gmail.com