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

Answers were Sorted based on User's Feedback



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

Answer / satishraja

str ="bibhu@#$%&das&*)(SUndar"
L=len(str)
For i=1 to l
x=left((right(str,l-i+1)),1)
If ASC(ucase(x))>=65 and ASC(ucase(x))<=90 then
Print x
End If
Next

Is This Answer Correct ?    0 Yes 0 No

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

Answer / usha

str="bibhu@#$%&das&*)(SUndar"

Set r = new regexp
r.pattern="[A-Z]"
r.global=true
r.ignorecase=true
Set a =r.execute(str)
msgbox a.count
For each t in a
msgbox t
Next

Is This Answer Correct ?    0 Yes 0 No

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

Answer / 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

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

Answer / indrani

str="bibhu@#$%&das&*)(SUndar"

Set r = new regexp
r.pattern="[A-Z]"
r.global=true
r.ignorecase=true
Set a =r.execute(str)
msgbox a.count
For each t in a
s1=s1+t
Next
msgbox s1

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More VB Script Interview Questions

how to find greatest of n numbers!

3 Answers   Syscon,


what is the standards used for writing the script in QTP

0 Answers  


how to find the textfile in the folder and copy file from one folder to another folder useing parameterigation in QTP

1 Answers   Accenture,


write a program to display the system specifications of client system with the help of vb script.

1 Answers  


1. How do declare public variable in vb scripts?

0 Answers  






When importing an excel file that has several columns each with different number of rows into QTP's Global datatable, how can you count the number of rows in a particular column?

3 Answers   Logica CMG, McGraw Hill,


How to throw an error in vbscript?

0 Answers  


write a vb script code to display the vbscript word by word (i e 1st it should display v then b and up to t )

1 Answers  


where can i learn VB scripint ?

0 Answers   Satyam,


Can anyone help me in write coding to get this pattern * ** *** ****

3 Answers  


Which object provide information about a single runtime error in a vbscript?

0 Answers  


write a program to display configuration of a local system with the help of vb script.

0 Answers  


Categories