Is there something like variadic functions in Centura?

174 views Asked by At

Is it possible to have optional parameters in Centura 6.1?

Like:

test( boolean , hWnd... )

And how would I declare them?

2

There are 2 answers

1
Steve Leighton On BEST ANSWER

Gupta TeamDeveloper v6.3 onwards supports Overloaded Constructors , allowing you to declare any number of Constructors with different parameter types. The compiler decides which constructor to use according to the parameter list you send it. See below for a simple example of calling the Constructor using 1) a Boolean parameter and then 2) a String Parameter.

TeamDeveloper supports Overloaded Constructors

1
lairton On

You can't.

Team Developer does not support optional parameters.