problem in wrting function - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming) +--- Thread: problem in wrting function (/Thread-problem-in-wrting-function) |
problem in wrting function - vijay44 - 02-04-2010 Hi, i was told to write a function that selects multiple items, that means: i have a list box that have 5 items, i should set a flag in such a way that if the flag is set to 2, i should be able to select 2 items similarly if the flag is set to 3 i should be able to select 3 items and so on... The item has unique name property and index property. Any help will be really appreciated. Regards; vijay RE: problem in wrting function - Saket - 02-05-2010 loop through the number of items to select i.e your flag and use 'ExtendSelect' method to select multiple items in the list. |