Micro Focus QTP (UFT) Forums

Full Version: problem in wrting function
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
loop through the number of items to select i.e your flag
and use 'ExtendSelect' method to select multiple items in the list.