View Single Post
Old 23-11-2006, 08:57
Alex's Avatar
Alex Alex is offline
Join Date: Nov 2002
Posts: 1,941
Blog Entries: 4

Yes, it's possible. In VB/VBA you just assign the return value to the function name:

Public Function abc() As String
   ' Do something
   abc = "Some String"
End Function
In VB.NET you can either do the same or use the Return statement as you showed above.
Reply With Quote