Jordan Garry - 2009-11-16

In visual basic, the return variable is the name of the function. In the first function you can see that there is a variable that has the same name as the function name, TradeTable_NumObjectsInTable, this holds the value that will be returned at the end of the function procedure.

You would just need to make a new variable to hold the return value and change the TradeTable_NumObjectsInTable in the function to that variable. Then put the return statement right before the last bracket of the function