troubleshooting Question

problem with event

Avatar of akohan
akohan asked on
Visual Basic Classic
5 Comments1 Solution175 ViewsLast Modified:
Hello group,


I'm using event of a Combbox (drop-down menu) to manage some operations:

1) ListIndex = 0 Nothing and its text is Blank
2) ListIndex = 1 and its text is "Create a new report"

From ListIndex > 1 all existing records are started meaning that when user selects one of them all associated data/parameters are retreived and shown in
their edit boxes.

Problem:




Assume user selects index  = 2 and then he changes report name and then switches or chooses
a different report, by selecing index = 3 or any; since there has been modification applied so program
shows confirmation to save or not to save the changes.
Problem is that I need to referesh the drop-down menu to show the updated report name however, since I'm doing all these on Click() event of the drop-down
menu it loses the next index it was going to switch.

Of course I can save it in a variable and assign it back like :

comb1.listindex = stored_index

but this will cause the confirmation to show up twice.

What can I do?

Regards,
ak













ASKER CERTIFIED SOLUTION
GrahamSkan
Retired
Join our community to see this answer!
Unlock 1 Answer and 5 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros