Prime: Anyway to refresh stack?

I have made a program that will change the "Base" variable that I have assigned to the Sin key. It does the job and changes the system base, but I must go to another app or open Settings and close it again to force an update of the stack. Once this happens, all the #Numbers update to the new base. I have tried various things to try and update the stack via my program, but can't find anything so far that works. Any ideas?

CHOOSE(B, "Base", "Bin", "Oct", "Dec", "Hex");


I have tried things like a messagebox and startview ... all I can remember at the moment, but I've been beating on it and I'll bet there is a solution :)

By returning a 1 it seems to always fall back to the "Solve Symbolic View" and then I hit the Home key and it works. But if I could call a refresh to the stack or Home or something in the program that might eliminate this step. As this all is about the same key strokes as simply changing it via the Settings, it's kind of pointless at the moment. I'm trying to find a quick way to do this and it may seem trivial to some but say one is doing Quine-McCluskey Minimization's, its nice to easily find out the number of ones in a decimal number oer and over (or write another program) or many other digital electronic thingies require quickly bouncing between bases. Thanks in advance.



did you try adding STARTVIEW(-2); STARTVIEW(-1); at the end of your program?



Thanks for the response. It doesn't work. Tried with and without the return statement.


What about STARTVIEW(-1,1); ? The second argument should force a redraw.


Thanks again. I did try that and it didn't work. I went through the help files list of views and tried to for redraws on many of them to see what would happen. Lesson learned is don't force a redraw of the View window as I had to reboot the device as I couldn't figure out how to get rid of it after that LOL.


OK,I got it and I'm very pleased! The trick is to start another view to switch from Home view and then have the program go back to the Home view. It works seamless and the user never sees it.

CHOOSE(B, "Base", "Bin", "Oct", "Dec", "Hex");

For anyone reading this that may need more explicit directions:

1)Enter the numbers with the default base: ALPHA->#->myNumber
2)Press SHIFT->User->SIN to change the base

The stack updates all "#"'s with the new default base. Much like the 48G and this makes my day. Thanks for all the help and brain squishing!

Possibly Related Threads…
Thread Author Replies Views Last Post
  HP 50g - select characters on the stack, copy/paste Sean Freeman 7 2,671 11-20-2013, 07:11 AM
Last Post: Sean Freeman
  Prime: Placing more than 1 item on the RPN stack in a single program? John Colvin 4 2,244 11-19-2013, 08:59 AM
Last Post: Miguel Toro
  emu48 - copy stack doesn't work (as expected) Thomas Radtke 2 1,963 11-11-2013, 02:19 PM
Last Post: Thomas Radtke
  HP Prime Stack operations from within a program John Colvin 1 1,370 11-08-2013, 09:45 PM
Last Post: Helge Gabert
  [PRIME] RPN: another attempt at returning more than one value to the RPN stack Marcus von Cube, Germany 5 2,465 11-05-2013, 02:44 AM
Last Post: Marcus von Cube, Germany
  hp prime - sending program results to the stack giancarlo 6 2,085 10-15-2013, 02:00 AM
Last Post: Giancarlo
  HP Prime - RPN stack access from programs? Mike Mander (Canada) 10 3,386 09-30-2013, 11:20 AM
Last Post: steindid
  WP-34S: Stack after divide by 0 Marcel Samek 4 1,399 08-24-2013, 11:57 PM
Last Post: Paul Dale
  Little curiosity: why the fourth stack register is called "T"? Antlab 34 8,522 07-03-2013, 04:49 PM
Last Post: Walter B
  Is there a free RPN stack emulator for writing 35s programs Chris C 6 2,349 11-20-2012, 08:01 AM
Last Post: Mike (Stgt)

Forum Jump: