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:
Option Explicit Private Function TextFunction(): Dim x As String, y As String x = "Hello" y = "World" MsgBox x & " " & y End Function Private Sub Form_Load() Call TextFunction End Sub
Regards,
Jenova


Reply With Quote
