Post Reply 
INPUT CMD partially operating on CAS code
12-04-2016, 04:55 PM
Post: #6
RE: INPUT CMD partially operating on CAS code
(12-04-2016 03:31 PM)compsystems Wrote:  Actually INPUT does work on CAS (partially), after entering the data this fails.
Please try the code above yourself.

This CAS test example demonstrates that the input() command doesn't work in CAS, while the same INPUT() structure does work in the following HOME example:
(Please try the code below for yourself.)
Code:

#cas

CAStest():= 
begin

  local a,b,c,resetVAL,initVAL;

  input ({ {a, [0], {21,21,0}}, 
           {b, [0], {21,21,1}},
           {c, [0], {21,21,2}} }, 
           "title", 
           {"label_a", "label_b","label_c"}, 
           {"help_a", "help_b", "help_c"},           
           {resetVAL,resetVAL,resetVAL}, 
           {initVAL, initVAL, initVAL} );

end;

#end


Code:

EXPORT HOMEtest()
BEGIN

  LOCAL a,b,c,resetVAL,initVAL;

  INPUT ({ {a, [0], {21,21,0}}, 
           {b, [0], {21,21,1}},
           {c, [0], {21,21,2}} }, 
           "title", 
           {"label_a", "label_b","label_c"}, 
           {"help_a", "help_b", "help_c"},           
           {resetVAL,resetVAL,resetVAL}, 
           {initVAL, initVAL, initVAL} );

END;

"Partially" working simply means it doesn't work.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: INPUT CMD on CAS code - Han - 12-04-2016, 04:13 AM
RE: - compsystems - 12-04-2016, 02:09 PM
RE: INPUT CMD on CAS code - DrD - 12-04-2016, 03:12 PM
RE: INPUT CMD partially operating on CAS code - DrD - 12-04-2016 04:55 PM



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