(05-12-2025, 08:48 PM)Pete Wrote: 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&
I literally made this exact same mistake about three posts ago. I knew it was going to be something dumb. Thanks everyone. Maybe in the next release the compiler can be made to throw a syntax error when parenthesis are used with a sub without CALL. Then again, I'm probably the only person who has this problem.