I see it isn't sending the zero value back to the calling sub.
Ah, you need to remove the parenthesis around the passing variable...
Change: PopUpMenu (state&) to PopUpMenu state&
Ah, you need to remove the parenthesis around the passing variable...
Change: PopUpMenu (state&) to PopUpMenu state&

