Skipp default parameters in Delphi

Posted by Vijay Bobba on Stack Overflow See other posts from Stack Overflow or by Vijay Bobba
Published on 2011-01-13T15:48:37Z Indexed on 2011/01/13 15:53 UTC
Read the original article Hit count: 136

Filed under:

Hi Is there any way to skip the default params, say suppose my method declaration is like this:

procedure Myfunc1(var isAttr1: Boolean = FALSE; isAttr2: Boolean = FALSE; isAttr3: Boolean = FALSE);

I can't call the function like this:

Self.Myfunc1( , , Attr3);

because I don't want unnecessary var declarations, at the same time I want the last param return value (it is a var type)

Thank for help in advance

© Stack Overflow or respective owner

Related posts about delphi