Post Reply 
Optional Parameter in User Function.
06-14-2021, 09:58 PM (This post was last modified: 06-14-2021 10:02 PM by Didier Lachieze.)
Post: #6
RE: Optional Parameter in User Function.
(06-14-2021 09:28 PM)matalog Wrote:  
(06-14-2021 09:24 PM)StephenG1CMZ Wrote:  Not in the current product, but I understand this is possible in the beta release.

I think I am running the beta release, is it documented anywhere?

From the additional documentation referenced here:
Quote:Multiple functions with the same names, but different parameter count
It is now possible to have more than one function in a program with the same name, as long as the parameter count is different.

So you can have two functions F2M(A,B) and F2M(A), with:

Code:
EXPORT F2M(A)
BEGIN
 F2M(A,0);
END;

This way F2M(6,2) or F2M(10) will both work.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Optional Parameter in User Function. - Didier Lachieze - 06-14-2021 09:58 PM



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