Post Reply 
Problem with INPUT instruction on CAS Program
01-18-2016, 03:25 PM (This post was last modified: 01-18-2016 11:22 PM by compsystems.)
Post: #1
Problem with INPUT instruction on CAS Program
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 
Find all posts by this user
Quote this message in a reply
01-18-2016, 10:56 PM
Post: #2
RE: Problem with INPUT instruction on CAS Program
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
Find all posts by this user
Quote this message in a reply
Post Reply 




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