Post Reply 
Global Variable
03-21-2015, 08:23 PM
Post: #3
RE: Global Variable
(03-20-2015 06:53 PM)Powersoft Wrote:  This is a simple test.
Try to fill this EXPORTED var3 with subroutine.
var1 and var2 have values, but var3 keeps on zero.
What is wrong on this?

Cheers,

Jan

TEST(); // Declaration of the subroutine
EXPORT var1,var2,var3; //Exported variable
EXPORT F1 ()
BEGIN
TEST(); // Call TEST and fill var3 with value
INPUT({var1,var2},{"var1=","va2="});
RETURN var1+var2;
END;

TEST()
BEGIN
var3:=12345.6789;
END;
Your program works fine on my Prime as is. I get var3 value as assigned.
I have the same firmware and Model as you. Runs fine on both the emulator and
the real Prime.
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)