How to set default value in function

Posted by Andre Scott | Updated on

Want to set default value in function? The syntax you use is correct, but as the error message says, the value has to be a compile time constant. A compile time constant doesn’t make sense for

As a workaround, you can use:

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@] Your question and answer will appear on and help other developers.

Related Questions & Answers