Post Reply 
Global Variable
03-21-2015, 02:02 PM (This post was last modified: 03-21-2015 02:54 PM by DrD.)
Post: #2
RE: Global Variable
Changed the INPUT(..) line. This should work:

Code:

TEST(); // Declaration of the subroutine
EXPORT var1:=0,var2:=0,var3:=0; //Exported variable
EXPORT F1 ()
BEGIN
TEST(); // Call TEST and fill var3 with value
 
INPUT({{var1,[0],{25,50,0}},{var2,[0],{25,50,1}}});
  
RETURN var1+var2;
END;

TEST()
BEGIN
var3:=12345.6789;
END;
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Global Variable - Powersoft - 03-20-2015, 06:53 PM
RE: Global Variable - DrD - 03-21-2015 02:02 PM
RE: Global Variable - John Colvin - 03-21-2015, 08:23 PM
RE: Global Variable - Han - 03-22-2015, 02:30 AM



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