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

What are the valid scopes of a variable in vbscript?

0 Answers  


how to find greatest of n numbers!

3 Answers   Syscon,


Like OPTION EXPLICIT statement what are the other statements used in vbscript and their usage. Please post me all the statements please.

0 Answers   Accenture,


Explain about the support of asp for vb script functionality?

0 Answers  


write a text script to display * as below ********** **** **** *** *** ** ** * * * * ** ** *** *** **** **** **********

1 Answers  






How to make professional test report using vbscript code in UFT, which gives us complete analysis of the test.

0 Answers   College School Exams Tests,


How to Import data from a file (file is on the desktop) to the data table

2 Answers   IBM,


hi Set myobj=Description.Create() myobj("type").value="submit" myobj("name").value="google search" myobj("html tag").value="button" browser("title:=google").page("title:=google").webButton (myobj).Click i was running above code in one weak back it was working fine i got result,again i opened after few days ,again i was trying to run the code it shows run time error in last line of my code ,why ?pls answer my question?

0 Answers  


what is diff between static and dynaic arrys?

0 Answers  


i am having some basic knowledge in c and VB 6.0. i qtp i want to know how to write the codings. by recording it is generating lot of codings. for example i want to test the text box. senerio is text box should not accept alphabets if it accept alphabets we should return fail status if it get number we should return pass status. how to write coding in vb script please help me

0 Answers  


What are the advantages of vbscript?

0 Answers  


Write VB script to convert from feet to inches(hint 1feet=12 inches)

2 Answers  


Categories