If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
Public Sub Trade(param1 as string, param2 as string, param3 as string) As String
' we use sub instead of function as we're not looking for a return value
end sub
Public Sub Trade(param1 as string, param2 as string, param3 as string) As String
' we use sub instead of function as we're not looking for a return value
end sub
but you are looking for a return value which is String. I bet this will cause an error
actualy i am returning an object representing a stock exchange trade, so i will be seting a ref to the obj then using some of its functions & Properties
dim msft as new trade(Shares,price, commishion, purchdate)
msgbox "You now own " & msft.Shares & " Shares of Microsoft"