Well ... the error message tells you what the problem is. If you declare a
string function it must at some point return a string value. Your prototype
returns nothing. Either declare it as void, or put a return statement in
it, and the error goes away.
--Bob
"Sammut" <sa*****@nextgen.net.mt> wrote in message
news:uJ**************@TK2MSFTNGP10.phx.gbl...
Hi,
I have the following function to which I need to pass a string variable
private string cMask (string sText)
{
}
but ever time I try to compile I get the error
'test.Form1.cMask(string)': not all code paths return a value
Any idea?
Thanks
Ivan Sammut