Visual Basic does not have an explicit "return" function for functions and subroutines. The tradetables.h file (especially the first function) is not explicit in its return via assigning the function name a value, so I'm unsure how to approach this.
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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