How to get the DataTable name from a List of DataTables?


#1

Hello,

I have a list of DataTables in a collection. For each one, I want to know the DataTable name.
The screenshot below can help to understand:

KR,
Francisco


#2

item.TableName

Cheers


#3

I had done this but the value is empty @Florent_Salendres


#4

This need to be set either at datatable creation

New DataTable("TableName")

Or later with an assign

image

Cheers


#5

Ok, that worked. I though that the TableName was the name of the DT variable.

Thank you!!


#6

Hi,
If you didn’t gave name at the time of creation, it will return Nothing.
The default value of the datatable should be
New DataTable(“tablename”).
Then if you run dt.TableName, it will return “tablename”