Pergunta

Is it possible to have optional parameters in Centura 6.1?

Like:

test( boolean , hWnd... )

And how would I declare them?

Foi útil?

Solução 2

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

Outras dicas

You can't.

Team Developer does not support optional parameters.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top