drop your semicolon... you're still in C#land
Jon
Not to mention instead of
Function MyFunc() As String
MyFunc = "Something";
End Function
use
Function MyFunc() As String
return "Something";
End Function
You can/should also use return in VB.NET
Ciaran O'Donnell
Madhavi said:
Thank you it solved my purpose
maadhavi
Jon Skeet [ C# MVP ] wrote:
in VB i use Exit Property or Exit Sub
what shud i use in C# for Exit
The "return" statement.