HP Forums

Full Version: More than 1 ChooseBox in an INPUT instruction
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have been messing with the INPUT instruction, and wanted to use 2 Choose fields. It just so happened that one of these Choose fields had 5 items and the other one had 7 items. I discovered, in the virtual calculator, depending on the order, that the choose field with 7 items would get shortened to 5 items (right now I don't remember the order that would shorten the 7 item Choose field). To further mess with my mind, when I tried it in the physical calculator, depending on the order, it appeared to terminate the program, and dump you in the home screen. What a quirky piece of electronics.
rcf
On the Android, As soon as you try to select the 1st/shorter list, the emulator exits.
Making the two lists the same length, all is well.
Code:

 EXPORT BS()
 BEGIN
  LOCAL OKC,UTP,UTP2;
  LOCAL TTL:={"//"};
  LOCAL LBL:={"unit","MORE"};
  LOCAL HLP:="HH";

  LOCAL UTYPES:={"bps","BPS"};
  LOCAL UTYPES2:=CONCAT(UTYPES,{"ONE MORE"});//CRASHES
  //LOCAL UTYPES2:=UTYPES;//WORKS

  OKC:=INPUT({{UTP,UTYPES},{UTP2,UTYPES2}},TTL,LBL,HLP,0,0);
  
 END;

EXPORT UN()
BEGIN
 BS()
END;
Reference URL's