Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What are the rules to name variable in vbscript?

1083


What are the special sub-types in vbscript?

1057


Which object is used to work with the excel sheets in the vbscript language and what statement is used to create this object?

977


Explain the arrays in vb script?

1070


How to access array data?

1009


Mention what is the main difference between function and sub-procedure?

1062


Which operator is used to perform the comparison among 2 operands in the vbscript language?

972


Which operator is used for fetching the modulus of the 2 numbers in the vbscript language?

1013


What is the use of the instr function?

1063


about vb scripting programs this type of all question& answers

2138


Which operator can be used to check if two numbers are equal or not in vbscript?

1164


How will you get the last occurrence of one string within another string using vbscript?

1196


How to identify column in VSFlexgrid? My VSFlexgrid window is identified as 'Active X Control'

3757


Description.Create

2650


Hello Guys, If any body looking for "worksoft certify tool training in bangalore", please contact me aimansaud@gmail.com

1486