HP48G soft menu toggle: How?
|
10-02-2023, 11:09 PM
Post: #24
|
|||
|
|||
RE: HP48G soft menu toggle: How?
(10-02-2023 10:23 PM)DM48 Wrote: When my program starts up, it checks to see if the FLAG has been set or not. It then gives the soft menu item the correct flag status on item. I am not understanding how to refresh the menu without writing another sub-routine to do exactly that and no more. Is this correct? With my editorials above, that's pretty much how I'd do it. Quote:It seems from the above I have to code this up twice. Is this about the go of it? I was hoping I was not looking at this correctly. No, no need to code anything twice. I'm a software engineer and my dictum is "coding anything twice is bad." Any given functionality should have its home in only one place: then if you change it later, it changes everywhere. Strive to make each separate routine or function general purpose -- this helps. The "code only once" precept is also good for figuring out what code should be split out into a subroutine. Does that make sense? Daily drivers: 15c, 32sII, 35s, 41cx, 48g, WP 34s/31s. Favorite: 16c. Latest: 15ce, 48s, 50g. Gateway drug: 28s found in yard sale ~2009. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 4 Guest(s)