09-28-2017, 09:18 PM
Thanks for your assistance. As it happens, I managed to determine that my reference to the name of the datatable was missing a character, hence the reason it wasn't working. Doh!
For the benefit of others, I was calling a function and passing it the name of a particular datatable that I wanted it to collect information from:
Then, inside the function I wanted to use the forwarded dt reference (locally known as 'dtbl') to collect specific information from that dt. For example:
I wasn't sure if it was even possible to do this in such a simplistic manner and so when it failed, I failed to spot the obvious error. Anyway, it works fine now that I have used the correct name.
Thanks again.
For the benefit of others, I was calling a function and passing it the name of a particular datatable that I wanted it to collect information from:
Code:
myRtnVar = myFunction ("my_dt_name", myTestVariable)
Then, inside the function I wanted to use the forwarded dt reference (locally known as 'dtbl') to collect specific information from that dt. For example:
Code:
numOfRows = DataTable.GetSheet(dtbl).GetRowCount
I wasn't sure if it was even possible to do this in such a simplistic manner and so when it failed, I failed to spot the obvious error. Anyway, it works fine now that I have used the correct name.
Thanks again.