Post Reply 
Optional Parameter in User Function.
06-14-2021, 10:10 PM
Post: #8
RE: Optional Parameter in User Function.
(06-14-2021 09:58 PM)Didier Lachieze Wrote:  
(06-14-2021 09:28 PM)matalog Wrote:  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.


That's exactly what I want, thanks a lot.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Optional Parameter in User Function. - matalog - 06-14-2021 10:10 PM



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