Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Trying to create a simple menu
#6
(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.
Reply


Messages In This Thread
Trying to create a simple menu - by CMR - 05-12-2025, 08:34 PM
RE: Trying to create a simple menu - by Pete - 05-12-2025, 08:48 PM
RE: Trying to create a simple menu - by SMcNeill - 05-12-2025, 09:11 PM
RE: Trying to create a simple menu - by CMR - 05-13-2025, 01:47 AM
RE: Trying to create a simple menu - by bplus - 05-12-2025, 09:05 PM
RE: Trying to create a simple menu - by Pete - 05-12-2025, 09:23 PM
RE: Trying to create a simple menu - by CMR - 05-13-2025, 03:15 AM
RE: Trying to create a simple menu - by CMR - 05-13-2025, 07:00 PM



Users browsing this thread: 1 Guest(s)