Conditional drop down menu


I’m new to Xojo. Trying to build a conditional drop down menu (i.e. if country is USA in first drop down, the second drop down will show CA and NY). Searching the web for more than two hours for sample code. No success. Please help.

Use the “selectionchanged” event of the dropdown/popupmenu to test what was selected then populate or manipulate the second control as needed.

//******* SelectionChange Method of control 1 *************
populateOtherControl(me.text) // or use RowTag if storing an ID

Thanks Bob. I will check and research the “SelectionChange” Method. Thank again for your direction. Zev.