Post Reply 
Using function in program
01-26-2014, 09:28 PM
Post: #6
RE: Using function in program
When creating a function with input variables, those variables are implicitly declared as local. Therefore, you would not use a LOCAL statement with them. For example,

Code:

EXPORT MYFUNC(a,b)
BEGIN
  RETURN(a+b);
END;

The variables a and b do not need a LOCAL a,b statement inside the BEGIN END pair.

Graph 3D | QPI | SolveSys
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Using function in program - Graan - 01-26-2014, 06:56 PM
RE: Using function in program - eried - 01-26-2014, 07:25 PM
RE: Using function in program - Dougggg - 01-26-2014, 07:27 PM
RE: Using function in program - Graan - 01-26-2014, 09:27 PM
RE: Using function in program - Han - 01-26-2014 09:28 PM



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