looked, but not very lucky, I want to create a function that allows you to pass only certain elements as the first parameter.
eg. it should only allow the following lines:
"error", "warning", "info"
then the call will be
showme("error"); or showme("warning"); or showme("info");
Can this be done? I know that I can determine
showme(string type){}
but ideally I need showme(string type "error"){}
source share