Topic: Select item in combo box make do loop 2x
Hello,
It took me many hours to figure out why my do loop executed twice even it should be only 1.
It turns out that when searching by typing and click the item in combo box it will execute it twice so if i have loop script on change event it will execute twice.
what i want to accomplish:
- grid1 have the list of free item that customer can claim (invisible)
- combo box1 has the list of customer
- grid2 will be the list of items added from other buttons. if customer has free items in grid1 it will be automatically added here.
If i select a customer from combobox1, it will search item from grid1 using loop, if found, item will be added to grid2. All good but it go to the loop twice when typing then clicking on item. so if i have showmessage or other procedure to execute it will be executed twice. please see sample
how to fix this? thanks!