How to get the value from method in visual basic 6

Posted by magh on Stack Overflow See other posts from Stack Overflow or by magh
Published on 2010-05-19T12:52:25Z Indexed on 2010/05/19 13:00 UTC
Read the original article Hit count: 216

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

© Stack Overflow or respective owner

Related posts about vb.net

Related posts about visual-studio