Post Reply 
App development on the Prime
10-01-2024, 06:40 PM
Post: #10
RE: App development on the Prime
Bonjour

Concernant INPUT, voici quelque chose qui peut vous intéresser :
Il est possible de préconstruire la liste des variables dans une variable locale, puis d'utiliser cette variable dans
INPUT comme ceci INPUT(EVAL(variable locale)).
Il faut mettre les variables entre ''.


Hello

Concerning INPUT, here's something that might interest you:
It's possible to pre-construct the list of variables in a local variable, then use this variable in INPUT like this INPUT(EVAL(local variable)) You have to enclose the variables in ''.
Example code :
Code:


EXPORT INPEVAL
BEGIN

 LOCAL Vars={{'X',[0],{30,20,1}},
             {'Y',[0],{30,20,2}},
             {'Z',{10,20,30},{30,20,3}}};

 INPUT(EVAL(Vars));
 INPUT(EVAL(Vars({1,2})));
 INPUT(EVAL(Vars({2,3})));

 Vars(0):={'W',[0],{30,20,1}};

 INPUT(EVAL(Vars({2,4})));

 INPUT(EVAL(CONCAT({Vars(0)},Vars({2,3}))));

 LOCAL VHelp:={"▇▶Help for X◀▇",
               "▇▶Help for Y◀▇",
               "▇▶Help for Z◀▇"};
 LOCAL VSelect:={2,3};

 INPUT(EVAL(Vars(VSelect)),{},{},VHelp(VSelect));

END;

Sorry for my english
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: App development on the Prime - Jase - 09-29-2024, 05:29 PM
RE: App development on the Prime - Tyann - 10-01-2024 06:40 PM
RE: App development on the Prime - Jase - 10-01-2024, 10:54 PM
RE: App development on the Prime - komame - 10-02-2024, 04:46 AM



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