Post Reply 
input issues
01-25-2021, 02:38 PM (This post was last modified: 01-25-2021 02:42 PM by Didier Lachieze.)
Post: #2
RE: input issues
Here is a simple example:

Code:
EXPORT Test()
BEGIN
 LOCAL a1;
 INPUT(a1,"Input test", "σ₁²");
 PRINT(a1);
END;

You can find σ in the Chars table (Shift Vars) under More>Greek and Coptic
and the lower script 1 and upper script 2 in the same table under More>Subscript/Superscript

For several variable inputs you can do:

Code:
EXPORT Test()
BEGIN
 INPUT({A,B,C,D},"Input test", {"Input σ₁²","Input σ₂²","Input σ₁₂","Input F(α,2,f)"});
 PRINT({A,B,C,D});
END;

Look in the HELP for more details about INPUT which has a lot of options to build complex input forms. You can access the HELP in several ways:
  • directly through the Help Key and then searching for INPUT,
  • by pressing the HELP after selecting INPUT in the Toolbox catalog,
  • or pressing HELP after positioning the cursor on the INPUT keyword in your program.

Note that these examples assume numeric inputs. If you want some inputs such as F(α,2,f) to be alphanumeric you need to specify the allowed types for each variable as described in the HELP.

For example :

Code:
EXPORT Test()
BEGIN
 LOCAL a,b,c,d;
 INPUT({{a,[0]},{b,[0]},{c,[0]},{d,[2]}},"Input test", {"Input σ₁²","Input σ₂²","Input σ₁₂","Input F(α,2,f)"});
 PRINT({a,b,c,d});
END;


Attached File(s) Thumbnail(s)
   
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
input issues - Amer7 - 01-25-2021, 02:07 PM
RE: input issues - Didier Lachieze - 01-25-2021 02:38 PM
RE: input issues - Amer7 - 01-25-2021, 03:13 PM
RE: input issues - rprosperi - 01-25-2021, 03:47 PM
RE: input issues - Amer7 - 01-25-2021, 03:53 PM
RE: input issues - Didier Lachieze - 01-25-2021, 04:03 PM
RE: input issues - Amer7 - 01-25-2021, 04:38 PM
RE: input issues - Didier Lachieze - 01-25-2021, 05:00 PM
RE: input issues - Amer7 - 01-25-2021, 06:25 PM
RE: input issues - C.Ret - 01-25-2021, 07:13 PM
RE: input issues - Didier Lachieze - 01-25-2021, 07:32 PM
RE: input issues - Amer7 - 01-25-2021, 07:42 PM
RE: input issues - toml_12953 - 01-26-2021, 04:34 PM
RE: input issues - C.Ret - 01-25-2021, 07:36 PM
RE: input issues - Amer7 - 01-25-2021, 08:00 PM
RE: input issues - Amer7 - 01-26-2021, 03:01 PM
RE: input issues - Amer7 - 01-27-2021, 11:45 AM
RE: input issues - Didier Lachieze - 01-27-2021, 01:59 PM



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