Whats the Difference Between uipathActivites

whats the Difference Between dt_columnscount and dt_columns.count in UiPath DB activities may be with some small example.

1 Like

@devasaiprasad_K

Both returns same output
Count of columns.

1 Like

Hi @devasaiprasad_K

  1. dt.columnscount:
  • This property is used with UiPath Database activities like the “Execute Query” activity.
  • It’s accessed directly as a property of the DataTable variable.
  • It returns an integer representing the number of columns in the DataTable.
  1. dt.columns.Count:
  • This property is used with standard DataTable operations in UiPath, such as manipulating DataTables using VB.NET.
  • It’s accessed through the Columns property of the DataTable variable, which returns a collection of DataColumn objects.
  • Count is a method of the DataColumnCollection class, which is used to count the number of elements in the collection.
  • It returns an integer representing the number of columns in the DataTable.

Hope you understand!!

2 Likes

after some analysis i understood there are some differences in Methods as well for columnscount and columns.count see images below

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.