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

Mention how to assign a date value to a variable?

582


Which keyword is used to declare a variable in the vbscript language?

527


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

1572


How to access array data?

537


What are class variables?

608






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..

2018


what is diff between static and dynaic arrys?

1582


How will you convert a string to lower case string using vbscript?

550


Explain about the asc function?

597


What is variant in vb script?

620


Mention what if you do not specify anything when you call a procedure?

564


Explain about tristate constants?

578


Mention what is select case statement?

540


Explain sga memory structures?

570


Hellow friends, I am learning QTP,but here problem is VB script. please guide me how to learn VB script w.r.t QTP and if you know any books tell me or if you have any materials or any use full material or any else w.r.t QTP please post me p.p.sekhar

1959