Does anyone know how to do the following on the HP49G?

The format of the INPUT command is...

"PROMT STRING" { "Command Line" { r c } option }

My input requests either Yes or No by using the following INPUT syntax...

"Choose Y or N" { "Y or N" { 1 7 } V a }

I'd like to use the following...

"Choose Y or N" { "(Y/N)" { 1 7 } V a }

The problem is that placing a ( and / into the command line produces an illegal syntax in the INPUT command. I've tried "\(Y\/N\)" but with no improvment.






If the 49 INPUT works like the 48, then it's doing what it is designed to do. The V option on INPUT removes the " delimiters to check for a valid object. The object on the command line after ENTER - (Y/N) - is not a valid object, so the error. INPUT returns the entire command line string, in this case the (Y/N) portion. Either change the command line prompt, for example "Yes or No", or delete the V option from the command line list { "(Y/N)" { 1 7 } a }. Remember, I am basing my post on the HP48 INPUT.




There does not seem to be any SST function on the HP 49G. The HP 48GX had a SST function which is very usefull for programming. It allows you to single step through a program and view the results. Is there a similar function on the HP 49 ?


Yes. Almost exactly as on the 48 series. Press left shift, the blue key, and then PRG, the CAT key. Then press NXT twice and then RUN. SST is the second key on the top row. You must first place the name of program to debug on the stack and press DBUG. Hope this helps. rdb.

Possibly Related Threads...
Thread Author Replies Views Last Post
  INPUT for HP Prime Eddie W. Shore 3 672 11-17-2013, 04:46 PM
Last Post: Michael de Estrada
  HP Prime Tutorial #4 is up (CASE/CHOOSE/INPUT) Eddie W. Shore 1 586 11-15-2013, 07:32 AM
Last Post: Davi Ribeiro de Oliveira
  HP Prime Programming Tutorial #3: WHILE, INPUT, KILL, REPEAT, GETKEY Eddie W. Shore 5 997 11-07-2013, 12:25 AM
Last Post: Han
  minor visual bug in INPUT Han 0 394 10-03-2013, 01:13 PM
Last Post: Han
  Input syntax on the Prime Gilles Carpentier 6 899 08-23-2013, 04:31 AM
Last Post: Gilles Carpentier
  Input CAS var on HP Prime Mic 2 534 08-22-2013, 02:29 PM
Last Post: Mic
  HP 85 Serial Interface; INPUT Example? inaki 1 510 06-12-2013, 11:09 PM
Last Post: Paul Berger (Canada)
  HP33E how to input numbers RalfGeiger 6 863 05-07-2013, 02:41 PM
Last Post: Ron Ross
  HP 35s - multiple program input values? Arno 3 722 04-29-2013, 11:27 AM
Last Post: Gerson W. Barbosa
  Mini-challenge: HHC2012 RPL programming contest with larger input David Hayden 14 1,633 10-05-2012, 10:36 PM
Last Post: David Hayden

Forum Jump: