HP Forums
2021: INPUT for CAS Mode - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: 2021: INPUT for CAS Mode (/thread-16852.html)



2021: INPUT for CAS Mode - compsystems - 05-01-2021 06:22 PM

Hello, INPUT cms does not work in CAS MODE, the following code although it is for home mode, it can be executed in CAS mode

try to test input_(x) then type '987' in single quotes, in the end the input variable is not stored in memory = (any way to do it?

PHP Code:
export input_(var)
begin
    local ok
;
    
ok:=input(eval(var));
    if 
ok then
        
print( var );
        print( eval(var));
        return eval(var);
    
end;
end



RE: INPUT for CAS Mode - toml_12953 - 05-01-2021 08:47 PM

(05-01-2021 06:22 PM)compsystems Wrote:  Hello, INPUT cms does not work in CAS MODE, the following code although it is for home mode, it can be executed in CAS mode

try to test input_(x) then type '987' in single quotes, in the end the input variable is not stored in memory = (any way to do it?

PHP Code:
export input_(var)
begin
    local ok
;
    
ok:=input(eval(var));
    if 
ok then
    
print( var );
    print( eval(var));
    return eval(var);
end

Where's the end of the if?


RE: INPUT for CAS Mode - compsystems - 05-02-2021 05:07 AM

updated code.