Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

returnig value from a function

Status
Not open for further replies.

tziviak2

MIS
Jul 20, 2004
53
0
0
US
what's the syntax for returning a value from a function?
 
Hi.

Function blah()
blah = 50
end function

ChaZ
 
and then how do I put the value into a variable out of the function? or do I just use "blah" and the value will be there?
 
Try...

Dim dodo As String
dodo = blah
MsgBox dodo

Karl
 
how do I put the value into a variable out of the function
The syntax is:
yourVariable = yourFunction(arg list)

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top