Hey p will be 5 upto execute last .. because script wont goto for statement if it enters once ..
so thats whay it is executing upto 5 times. Regards Ashok.N On 5/4/12, ashok n <[email protected]> wrote: > hey its unexpected yaar.. > > how come 5 is printing is there any concept of byref and byval > > Regards > > Ashok.N > > On 5/3/12, Anish Pillai <[email protected]> wrote: >> Interesting Find.. :D >> >> I was not aware of this.. If you put msgbox after for loop it will show >> value 4. That means that the value of gets updated. But the number of >> iterations didn't change. Time to revisit the documentation.. :) >> >> >> * >> Cheers, >> a n i s h >> >> [QTP >> Tutorial]<http://www.automationrepository.com/tutorials-for-qtp-beginners/>| >> [VBScript >> Tutorial]<http://www.automationrepository.com/category/qtp-and-vbscript-tutorials/>| >> [QTP >> Blogs] <http://www.automationrepository.com/qtp-blogs/> >> >> ** >> [** Subscribe to Get New Posts in your Inbox >> **]<http://feedburner.google.com/fb/a/mailverify?uri=automationrepository/feeds> >> * >> -- >> ar >> >> -- >> 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 >> > > > -- > Cheers, > > Ashok Kumar.N > +91 9972628339 > -- Cheers, Ashok Kumar.N +91 9972628339 -- 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
