Hi! When definnig the prototype for that function use a default argument like wxString somefunc(wxString b = ""); You don't need to repeat defaults in the implementation of the function.
Another way would be to overload the function so that there is wxString somefunc(); and wxString somefunc(wxString b);
You could also use an argument list of variable length, going from 0 to n. But I guess you don't want that...
upcaseupCASE ----------------------------------- If it was hard to write, it should be hard to read!- Do. Or do not. There is no try! |