Post Reply 
variable initial value - bug? (rev. 8151)
09-26-2015, 04:09 PM
Post: #4
RE: variable initial value - bug? (rev. 8151)
Now if you place the local statement within the program block it will be local only to the program, instead of the program's environment. This should work as you expected:

Code:
 
EXPORT VAR_TEST()
BEGIN
  local k:=1;  // Moved local statement here
  PRINT();
  PRINT(k);
  IF k=1 THEN
    k:=0;
  END;
END;
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: variable initial value - bug? (rev. 8151) - DrD - 09-26-2015 04:09 PM



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