Post Reply 
More than 1 ChooseBox in an INPUT instruction
01-24-2015, 02:38 AM
Post: #1
More than 1 ChooseBox in an INPUT instruction
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
Find all posts by this user
Quote this message in a reply
11-09-2015, 09:24 AM (This post was last modified: 11-09-2015 09:25 AM by StephenG1CMZ.)
Post: #2
RE: More than 1 ChooseBox in an INPUT instruction
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;

Stephen Lewkowicz (G1CMZ)
https://my.numworks.com/python/steveg1cmz
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 2 Guest(s)