Post Reply 
Problems with INPUT, need some help
07-14-2022, 10:24 AM
Post: #5
RE: Problems with INPUT, need some help
(07-13-2022 01:28 PM)matalog Wrote:  This works, the non-simple versions of Input isn't so simple.

Code:
EXPORT Test_Input()
BEGIN
  LOCAL jaar :=floor(Date);
  LOCAL maand:=floor((Date-floor(Date))*100);
  LOCAL dag  :=floor((Date*100-floor(Date*100))*100);
  LOCAL GMT  := -2; // Amsterdam at summertime
  INPUT({jaar,maand,dag,GMT},{"Year?","Month?","Day?","GMT?"});

  PRINT();
  PRINT("jaar:"+jaar);
  PRINT("maand:"+maand);
  PRINT("dag:"+dag);
  PRINT("GMT:"+GMT);
END;

When I put in an negative number got an error "error: invalid input", when I put a positive number it is accepted!
When setting the calculator setting to schoolbook or algebraic then the negative number is accepted.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Problems with INPUT, need some help - Powersoft - 07-14-2022 10:24 AM



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