How to return only alpha bate string from an string str =
"bibhu@#$%&das&*)(SUndar"

Answer Posted / pankaja yathindrakumar

'How to return only alphabate string from an string str = "bibhu@#$%&das&*)(SUndar"

str="bibhu@#$%&das&*)(SUndar"
for i=1 to len(str)
x=mid(str,i,1)
if Asc(x)>=Asc("A") And Asc(x)<=Asc("z") then
t=t&x
End If
Next
Msgbox t

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which function is used to perform string comparison?

666


how to acces the remote mechine using vb cript(QTP)

1677


How to open excel in vb script?

660


Is VB Script Case sensitive or Case insensitive?

734


What are keywords in the vbscript language?

616






Which in-built function is used to format the number in the vbscript language?

670


How do i automate a website www.flyashx.com without having any test cases witin a week time.

1543


Explain about arrays in vb script?

682


How can you create a file object to work with the files in the vbscript language?

593


If we take 2 strings as “good” and “bad” then what will ‘+’ and ‘&’ operators return?

627


Explain few date functions in vbscript?

698


What purpose does ‘on error resume next’ serves?

643


How to assign a date value to a variable?

677


Give me sm ideas to write Vbscripts abt protocol testing abilash700@gmail.com.

1710


How to create a function in vbscript?

665