View Single Post
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old October 6th, 2022, 02:32 PM
The Target1 mechanism we built does not use setchosen. The procedure just sets the focus to the item that's found, or if no Target1 tag is present, sets the focus to the user's choice in the drop-down. So then all the scripts looking at this drop-down just call the procedure, then verify that a focus was set, then continue, using whatever the focus was set to.

This way, if the Target1 tag is no longer assigned, the drop-down goes back to being user-controlled, with no memory of having been overridden.
Mathias is online now   #4 Reply With Quote