String.Join(Environment.NewLine,readCol.AsEnumerable().Where(Function(r) r(col.ColumnName).ToString<>“” Or r(col.ColumnName).ToString<>" " Or r(col.ColumnName).ToString isNot Nothing).Select(Function(row) row(col.ColumnName).ToString).ToArray())
Hi
I’m using this expression to copy columns data and follow the same loop for each column but when I’m using the above expression getting an error strict option disallows late bindings.
I am using Set to clipboard activity to copy column data to string and follow the same loop for other columns. So Should I switch it to assign activity to record the list of data.
You need not switch the activity…you can use as you need…
But I believe you are looking theough dt.Columns in a for loop and your item name is col….in that for loop you have to change the type argument to datacolumn…By default it would be object…