Hi there,

I just recently found out that you can leave a colon at the end of a function and still be able to call it without VB crying about it. I then decided to add a variable to and called it and it worked. I just wanted to know if any one had seen this type of syntax for a function?

VB Code:
  1. Option Explicit
  2.  
  3. Private Function TextFunction(): Dim x As String, y As String
  4.     x = "Hello"
  5.     y = "World"
  6.    
  7.     MsgBox x & " " & y
  8. End Function
  9.  
  10. Private Sub Form_Load()
  11.     Call TextFunction
  12. End Sub

Regards,

Jenova