Post Reply 
Converting
02-04-2015, 07:31 PM (This post was last modified: 02-04-2015 08:57 PM by Han.)
Post: #20
RE: Converting
Make a customized key that brings up a full choose-menu of all the units (you can even do nested choose menus by applying choose() in sequence) and outputs the proper units. Once done, you probably could do all your conversions in a few keypresses and touch-screen taps. Bind the key to the underscore symbol and then every time you type _ it should allow you to quickly pick the units. Your program can even keep track of the most recent menus, too.

That said, I do think the lack of menus from the HP48 through HP50 calcs is indeed a nuisance.

Here's an example (just modify it to add more categories and units):
Code:
lastunit:={0,0};

KEY KS_Space()
BEGIN
  local list1:={"Length", "Volume"};
  local list2:={{"m","cm","in"},{"m^3","cm^3","in^3"}};
  local c1,c2;
  if lastunit(1) OR lastunit(2) then
    c1:=lastunit(1); c2:=lastunit(2);
    choose(c2,list1(c1),list2(c1));
  else
    c1:=0; c2:=0;
  end;

  if c2==0 then
    repeat
      choose(c1,"Units",list1);
      if c1 then
        choose(c2,list1(c1),list2(c1));
      end;
    until c1==0 OR c2;
    lastunit:={c1,c2};
  end;

  if c2 then return("_"+list2(c1,c2)); else return(""); end;
END;

Only 10 keystrokes/screentouches to convert from 1 meter to inches (or 12 if you count setting up user mode)

Graph 3D | QPI | SolveSys
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Converting - marcusnicolas1 - 01-24-2015, 03:18 AM
RE: Converting - toml_12953 - 01-24-2015, 06:06 AM
RE: Converting - Miguel Toro - 02-01-2015, 01:15 PM
RE: Converting - Joe Horn - 01-25-2015, 01:12 AM
RE: Converting - toml_12953 - 01-25-2015, 03:57 AM
RE: Converting - rprosperi - 01-25-2015, 04:28 AM
RE: Converting - marcusnicolas1 - 02-01-2015, 02:59 AM
RE: Converting - Joe Horn - 02-01-2015, 06:02 AM
RE: Converting - retoa - 02-03-2015, 09:49 PM
RE: Converting - Offroad - 02-03-2015, 10:24 PM
RE: Converting - retoa - 02-03-2015, 10:48 PM
RE: Converting - Offroad - 02-03-2015, 11:09 PM
RE: Converting - Joe Horn - 02-04-2015, 12:34 AM
RE: Converting - retoa - 02-04-2015, 07:15 AM
RE: Converting - Joe Horn - 02-05-2015, 06:52 AM
RE: Converting - retoa - 02-05-2015, 07:25 AM
RE: Converting - Tim Wessman - 02-03-2015, 11:17 PM
RE: Converting - ndzied1 - 02-03-2015, 11:45 PM
RE: Converting - Offroad - 02-03-2015, 11:54 PM
RE: Converting - ndzied1 - 02-04-2015, 01:45 AM
RE: Converting - ndzied1 - 02-04-2015, 06:56 PM
RE: Converting - retoa - 02-05-2015, 10:41 AM
RE: Converting - Han - 02-04-2015 07:31 PM
RE: Converting - Claudio L. - 02-06-2015, 04:30 PM
RE: Converting - Angus - 02-05-2015, 09:18 AM
RE: Converting - Han - 02-05-2015, 07:06 PM
RE: Converting - ndzied1 - 02-05-2015, 07:13 PM
RE: Converting - Offroad - 02-05-2015, 07:23 PM
RE: Converting - retoa - 02-05-2015, 07:49 PM
RE: Converting - ndzied1 - 02-05-2015, 08:29 PM
RE: Converting - Han - 02-05-2015, 08:57 PM



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