Post Reply 
Unexxpected Procedure Call (Solved) when variable undefine
11-15-2016, 10:43 PM (This post was last modified: 11-25-2016 12:09 PM by StephenG1CMZ.)
Post: #1
Unexxpected Procedure Call (Solved) when variable undefine
In this program, when I forget to define variable KK (it was defined until I split the procedure into two procedures, one omitted here), Running the program seems to execute a WAIT, and when I tap ESC an "ESCAPE" MSGBOX appears.
The KIF MSGBOX only appears if the variable is defined.

Code:

 
 
 EXPORT Precision10 (JJ)
 BEGIN
  //LOCAL KK:=LOG(2);
  MSGBOX(KK);
  PRINT(JJ+": "+(JJ*KK));//NUM OF DEC DIGITS ACCURACY
  //RESULT IS REAL,TRIG MAYBE WORSE
 END;

 EXPORT PREC()
 BEGIN
  PRINT();
  Precision10(53);
MSGBOX("KIF");

 END;

Stephen Lewkowicz (G1CMZ)
https://my.numworks.com/python/steveg1cmz
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Unexxpected Procedure Call (Solved) when variable undefine - StephenG1CMZ - 11-15-2016 10:43 PM



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