Late Binding error when performing actions on DataTable item with custom object type

I have a DataTable, and one of the columns “NameList” is of type List.
I iterate through each row using For Each Row, so i get each row as userRow.
I am using an If activity and I want to set the condition as:

userRow("NameList").Count > 0

I’ve been trying to somehow access this List via userRow(“NameList”) but I get Option Strict On disallows Late Binding error etc.

How do I do this?


If userRow(“NameList”) contains a list of strings separated by semicolon like :
“Susana;Marcos;Pedro;Lucía” you can use this code to know the number of items:

userRow(“NameList”).ToString.Split(New Char() {";"c}, StringSplitOptions.RemoveEmptyEntries).ToList().Count

If you only need to know if userRow(“NameList”) is empty or not maybe you can use an easy way for example String.IsNullOrEmpty(userRow(“NameList”).ToString).


Did you figure it out. I am having the same issue.