cbonjovi
asked on
Return parameter
Sorry for dummy question but,
how to return a parameter from a vb .exe application??
(I remember in ANSI C, I wrote return xx in main function).
Regards
how to return a parameter from a vb .exe application??
(I remember in ANSI C, I wrote return xx in main function).
Regards
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
listening...
'function always return value whatever we assign with function Name
Function FunName(strMyFirstName as String)
If (strMyFirstName = "PRASHANT" ) Then
FunName ="Pawar"
Else
FunName = "Deshmukh"
End If
private sub onFormLoad()
msgbox FunName("PRASHANT")
msgbox FunName("VISHAL")
End sub
'try this
Function FunName(strMyFirstName as String)
If (strMyFirstName = "PRASHANT" ) Then
FunName ="Pawar"
Else
FunName = "Deshmukh"
End If
private sub onFormLoad()
msgbox FunName("PRASHANT")
msgbox FunName("VISHAL")
End sub
'try this
I'm guessing that your question is the opposite of the above answer, so you should reject it. This will also allow other experts to more easily find this question.
If you want your app to RETURN a value (not RECEIVE a value) I think you can set it up as an ActiveX form, but I've never tried it.
If you want your app to RETURN a value (not RECEIVE a value) I think you can set it up as an ActiveX form, but I've never tried it.