Re: Need help in Descriptive programming..

2011-01-26 Thread ta se
Thanks for your response. On Tue, Jan 25, 2011 at 6:29 PM, Shirish Kabade wrote: > if you want for one checkbox then create function and just pass the > parameter val as a,b,c,d as required. > > Function ClickCheckBox(ChkName) >Browser("Micclass:=Browser").Page("Micclass:=Page").Checkbox("nam

Re: Need help in Descriptive programming..

2011-01-25 Thread Shirish Kabade
if you want for one checkbox then create function and just pass the parameter val as a,b,c,d as required. Function ClickCheckBox(ChkName) Browser("Micclass:=Browser").Page("Micclass:=Page").Checkbox("name:=" & ChkName & """).Set "ON" End Function Call ClickCheckBox("a") Call ClickCheckBox("b")

Re: Need help in Descriptive programming..

2011-01-20 Thread raghu busireddy
no need to create object for every element if it is one checkbox one object is required.that is use of descriptive programing On Thu, Jan 20, 2011 at 6:13 PM, ta se wrote: > Thanks for your quick response. > > Could you please confirm, if i going to use more than one text box and > buttons. We

Re: Need help in Descriptive programming..

2011-01-20 Thread ta se
Thanks for your quick response. Could you please confirm, if i going to use more than one text box and buttons. We have to create object for every element ? or do we have any other way write ? Regards, Tamilselvan On Thu, Jan 20, 2011 at 5:08 PM, raghu busireddy wrote: > hi Tamilselvan > > u ca

Re: Need help in Descriptive programming..

2011-01-20 Thread Azhar Mehmood
Apply with statment 1. Select all code 2. Press Ctrl + W Enjoy On Thu, Jan 20, 2011 at 12:00 PM, ta se wrote: > Hi All, > > Anyone could you please guide me, how to reduce the code(single line or two > lines). > > Here, i am using 4 lines to create, assign and implement a same object, is > a

Re: Need help in Descriptive programming..

2011-01-20 Thread raghu busireddy
hi Tamilselvan u can use this code Set a = Description.Create a("micclass").value="WebCheckBox Set basepage=Browser("Micclass:=Browser").Page("Micclass:=Page").).ChildObjects(a) for i=0 to basepage.count basepage(i).set "ON" next if use the above code it will check all the cheek boxes in the pag

Need help in Descriptive programming..

2011-01-20 Thread ta se
Hi All, Anyone could you please guide me, how to reduce the code(single line or two lines). Here, i am using 4 lines to create, assign and implement a same object, is any other way to reduce the code ? Please share me your knowledge. Thanks in advance. Set a = Description.Create Set b = Descript