How to get the value from method in visual basic 6
- by magh
the code below is showing error after return statement
Private Sub Command1_Click()
Dim str As String
str = display("test")
MsgBox (str)
End Sub
Public Function display(s As String) As String
s = "updated"
Return s
End Function
thanks in advance