Post Reply 
Input Box
04-29-2018, 11:43 PM
Post: #1
Input Box
Is there a way to write output to a text box that was used for input?
Find all posts by this user
Quote this message in a reply
04-30-2018, 05:25 AM
Post: #2
RE: Input Box
Hello,

All the text in the input box can be programatically generated.
The default values for the various fields can also be progrmatically generated.

This should allow you to "write some output to an input text box".

Assuming that I understood what you were asking correctly.

If you want to dynamically change the values in an input box (like some of the system input boxes), unfortunately, this is not possible with the user level function.

Cyrille

Although I work for the HP calculator group, the views and opinions I post here are my own. I do not speak for HP.
Find all posts by this user
Quote this message in a reply
04-30-2018, 06:15 PM
Post: #3
RE: Input Box
Can you provide me with a simple code to do this?
Find all posts by this user
Quote this message in a reply
04-30-2018, 06:23 PM
Post: #4
RE: Input Box
I am trying to create an app like the triangle solver that has input boxes and displays the results in the same input boxes that were not enter with data.

Also can you hide or make not visible an input box?
Find all posts by this user
Quote this message in a reply
05-29-2018, 10:36 PM
Post: #5
RE: Input Box
There is now way to control a displayed INPUT box, BUT I often use it in a loop to show the result below the fields, like that:

Code:

LOCAL ret;
REPEAT
  ret := INPUT(A, B, C);
  IF ret <> 0 THEN
    C := A+B;
  END;
UNTIL ret = 0;

Each time you click "Ok" the result is updated, if you click "Cancel" the box is closed.
Find all posts by this user
Quote this message in a reply
06-03-2018, 12:59 AM
Post: #6
RE: Input Box
Check the program "DistSpeedTime" In the Prime Software section. The program uses that technique you may be looking for. Made by yours truly.

Note: The INPUT vars other than A to Z are declared with EXPORT rather than LOCAL. Check line 4. Line 68 in the first section causes the return to line 31, and the values are returned to the input boxes since the vars are Global. This is necessary to cause the effect you are looking for. The vars A to Z need not be declared since they are Global vars. Lower case a to z can be declared with LOCAL, when they are not used as an INPUT label .

BM
Find all posts by this user
Quote this message in a reply
Post Reply 




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