been looking but not much luck, i want to create a function that only allows certain items to be passed as the first parameter.
e.g. it should only allow the following strings:
"error", "warning", "info"
then the call would be
showme("error");
or showme("warning");
or showme("info");
can this be done? I know I can define
showme(string type){}
but ideally I need showme(string type "error"){}
I suggest an
enum