HP Forums
Problem with INPUT instruction on CAS Program - 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: Problem with INPUT instruction on CAS Program (/thread-5547.html)



Problem with INPUT instruction on CAS Program - compsystems - 01-18-2016 03:25 PM

HELLO, resuming programming in prime, I can not initiate a data entry box, ¿why?

PHP Code:
#cas
  
p4_input_data()
  
begin    
    local a

    
input); 
    return 
a;
  
end;
#end 

OR

PHP Code:
#cas
  
p4_input_data()
  
BEGIN
    LOCAL a

    
INPUT); 
    RETURN(
a);
  
END;
#end 



RE: Problem with INPUT instruction on CAS Program - roadrunner - 01-18-2016 10:56 PM

Will this work for you:

PHP Code:
EXPORT temp()
begin
 local x
;
 
input(x);
 return 
x;
end;

#cas
p4_input_data():=
BEGIN
 local a
;
 
a:=temp()
 return(
a);
END;
#end 

-road