Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Trying to create a simple menu
#4
(05-12-2025, 08:48 PM)Pete Wrote: I see it isn't sending the zero value back to the calling sub.

Pete's drinking.  What he's saying has nothing to do with your problem.  Ignore him 100%.  Big Grin

    PopUpMenu (state&)    <--- This line is the problem, and I think it's one you've had before.

*DON'T use parenthesis with SUB calls.  It prevents passing of values back and forth.

Change that to the following and it works:

    PopUpMenu state&

OR Change it to the following and it works:

    CALL PopUpMenu (state&)

But as you have it, you're not passing values back and forth and as such you're not getting that exit value back from the SUB.  That's the only problem I see with what you've got here.  You simply can't pass values back and forth inside parenthesis like that.
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

Possibly Related Threads…
Thread Author Replies Views Last Post
  Universal Menu Concept Pete 3 384 01-05-2026, 07:31 PM
Last Post: Pete
  Nice simple, I hope, question Mad Axeman 4 360 12-20-2025, 09:28 PM
Last Post: SMcNeill
  Is there a menu function? Mad Axeman 17 1,093 12-17-2025, 04:43 AM
Last Post: SMcNeill
Photo from png tile, create symmetrical screen image hsiangch_ong 11 979 08-23-2025, 01:23 AM
Last Post: bplus
  Simple Addition gone wrong Dimster 13 1,468 08-22-2025, 09:00 PM
Last Post: Pete

Forum Jump:


Users browsing this thread: 1 Guest(s)