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

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

Code:
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