>From where that "1" is coming in o/p...That is definitely weird ...lol. One
suggestion , try Do While and I think you should get what you expect

On Thu, May 3, 2012 at 11:26 AM, iRahulSingh <[email protected]>wrote:

> Hello Frnds ...
>
> Look into the following code :
> p = 5
> For i = 2 To p
>        MsgBox i
>        If i = 3 Then
>                p = 4
>        End If
> Next
>
> initially I thought output of this would be 1,2,3,4 BUT the OUTPUT is
> 1,2,3,4,5 !!
>
> Interesting... haven't checked the for loop help yet for vbscript but
> doesn't it look interesting ( hope not weired ;) )
>
> --
> 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 [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/MercuryQTP?hl=en
>



-- 
Best Regards,
Aniket Gadre
Test Automation Lead
Amdocs , Pune.
E-add: [email protected]

-- 
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

Reply via email to