You would have expected 2,3,4,5 but not 1,2,3,4 

But it's weird though 

Sent from my iPhone

On May 3, 2012, at 12:56 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

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