Need answer

12 views
Skip to first unread message

prasad k

unread,
May 24, 2012, 10:15:41 PM5/24/12
to QTP - HP Quick Test Professional - Automated Software Testing
1)How to extract a number from alpha numerics with out using built in
function and loop

2) I need a web table scripts, Web table contain 1000 rows how to get
search string.

3) how to compare the web table and excel files

Please help me

Thanks&Regards

prasad

prasad k

unread,
May 24, 2012, 10:15:41 PM5/24/12
to QTP - HP Quick Test Professional - Automated Software Testing

๒คภ๔єรђ.קคtเl

unread,
May 25, 2012, 1:29:11 AM5/25/12
to mercu...@googlegroups.com
Hi Prasad,
Ans for Q1
a="abs4s56t6"

for i=1 to len(a)
b=mid(a,i,1)
if isnumeric(b) then
 c=c&b

end if
next
msgbox c


Regards,
Bandesh


--
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to Mercu...@googlegroups.com
To unsubscribe from this group, send email to
MercuryQTP+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

siva prasad

unread,
May 25, 2012, 1:40:20 AM5/25/12
to mercu...@googlegroups.com
Here i don't want to use any functions and loop

this question is frquently aksing inadp and broad ridge


Thanks&Regards
pradad
--
prasad kopparapu
+91-9032114331

gokul krishna

unread,
May 25, 2012, 2:02:46 AM5/25/12
to mercu...@googlegroups.com
Script for first question--

Dim i

i= "123aab45"

Set re= New RegExp

re.Global=True

re.IgnoreCase=True

're.Pattern="\d" 'for numerics

re.Pattern="\D" 'for alphbets

Set val=re.Execute(i)

'MsgBox val.Count

For Each j In val

MsgBox j.Value
Next

Cheers,
Gokul.
Thanks,
Gokul Krishna.

siva prasad

unread,
May 25, 2012, 2:44:34 AM5/25/12
to mercu...@googlegroups.com
Thank you Gokul.

Thanks&Regards
prasad k
Reply all
Reply to author
Forward
0 new messages