I have created and tested a function called JoinTables. This function will return a data table. I would like the returned datatable to be assigned to the dtSlopeTable variable.
dtSlopeTable = JoinTables(dataTableList, columnGroup);
When I run this, the output table is created with the desired content but it is not associated with the variable name "dtSlopeTable".
When I check the value of dtSlopeTable, it says Data Table( "UnknownTable" ).
I have tried wait(0) and wait(10) but niether work.
However, I am able to get it working if I use wait(0) and the line before has:
dtTest = New table();
This is a weird work around and I would perfer to use a clean solution. Do you have an idea of why I can't assign the table to the variable name?
If you need to view the function definition, I would be happy to attach.
Thanks for the help.