Does anyone know if it is possible to have a break right before the menu processes. For example the user would input their option on the menu but before the baked in Goto command runs it asks them to input a variable. Asking to avoid having all of the options on the menu having a Goto command for one line of code just to go straight back to where it was. Seems pretty resource inefficient.
You could have the user input a value before the Menu begins if that is what you mean, on the other hand you could also make a custom menu where you can ask right after (possibly using a sub program?), or you could make all of the Gotos just set a var (which option was chosen), then ask, then use the two to continue with the code, but I would be careful with using excessive Gotos in your code as if you jump out of loops and such you can leak memory. Just some suggestions Laughing
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement