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 uses of vb script?
Explain the constants in vbscript?
what is inner join? what is outer join? what is a constraint? tell me about rdbms? tell me about acid properties?
Could Anybody Please tell me What is the script for Find 3rd Largest element in the Array without using a SORT function int Find(int arr[], int size); Thanks in Advance..
Mention how to assign a date value to a variable?
why do u choose to go for testing why cant for devoloping
What are the 2 ways to pass a value to the function?
can anyone send me a vb scripts code for clicking on a link and coming back on home page again does the same for many links on a web page.
give me any information abou vb script books learn quckly
i have a problem with this error(this error related edit and
delete button,when i click this button in datagrid..i will
get this error)"Invalid postback or callback argument.
Event validation is enabled using
Mention what are the rules to name variable in vbscript?
Why to use option explicit in vb script?
Mention what is byref and byval parameters in vbscript?
How to create a cookie using vbscript?
Which function allows you to instantiate an object given its programmatic identifier or progid?