Friday, November 3, 2017

HP Prime: User Key: Building a list of Templates

HP Prime:  User Key:  Building a list of Templates

Introduction

You can assign a custom menu to a user key.  The program TEMPLATES assigns a list of functions to the templates key (the key to the right of the Toolbox key, key 18 I believe). 

When this program is completed, you call the custom menu by pressing [Shift], [Help] (User), [template key]. 

Choose a function or command.  Whatever you choose will be inserted into the entry line.  This user key works in program editing as well.



HP Prime Program:  TEMPLATES

Note:  I do not have a main “TEMPLATES” program block.  In terms of making a custom menu like this, it is not necessary.


// a custom menu
// 2017 EWS

KEY K_Templ()
BEGIN
LOCAL str,lst,cst,ch;
// templates
lst:={"Function.ROOT()",
"Function.AREA()",
"Function.SLOPE()",
"Finance.TvmNbPmt()",
"Finance.TvmIPYR()",
"Finance.TvmPV()",
"Finance.TvmPMT()",
"Finance.TvmFV()"};


// choose list
cst:={"ROOT",
"AREA",
"SLOPE",
"N",
"I%YR",
"PV",
"PMT",
"FV"};

CHOOSE(ch,"Template",cst);

RETURN lst(ch);

END;

This is one of my favorite programs because now I will be able to quickly access functions that would take additional keystrokes and with the App specific functions, dealing with dynamic menus.  I encourage this type of custom menu for other functions and commands you frequently use from the catalog.  Try it.  Please let me know how it goes.

Eddie


This blog is property of Edward Shore, 2017.

2 comments:

  1. Hi friends!!!!!
    i have got a new hp laptop free
    from this site http://bit.ly/2AE4cNi
    you can also get this by completing some simple task
    so friends lats do this just follow my instructions!!!!

    At first go to the link which i have given,
    then go to the register page and register there by your name and email,
    then answer some simple question and participate the contest and get free various kinds of product from the site

    ReplyDelete
  2. The pivot-calculator is used to calculate pivot points in order to make the right decision while trading. A pivot point is the price at which the price fluctuation of a currency pair is expected to move into a different direction.

    ReplyDelete

Fun with the Radio Shack EC-4026

Fun with the Radio Shack EC-4026   (Equivalent of the Casio fx-4500P) Programming Notes   The syntax for prompting ...