Dec 28, 2004 #1 tziviak2 MIS Joined Jul 20, 2004 Messages 53 Location US what's the syntax for returning a value from a function?
Dec 28, 2004 #2 Blorf Programmer Joined Dec 30, 2003 Messages 1,608 Location US Hi. Function blah() blah = 50 end function ChaZ Upvote 0 Downvote
Dec 28, 2004 Thread starter #3 tziviak2 MIS Joined Jul 20, 2004 Messages 53 Location US 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? Upvote 0 Downvote
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?
Dec 28, 2004 #4 deduct Programmer Joined Jul 5, 2002 Messages 78 Location US Try... Dim dodo As String dodo = blah MsgBox dodo Karl Upvote 0 Downvote
Dec 28, 2004 #5 PHV MIS Joined Nov 8, 2002 Messages 53,708 Location FR 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 Upvote 0 Downvote
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