I definition dataRow use datatable select, when for each dataRow,however, i cannot assign one string aa=item("OUCode").tostring, system prompt "Option stirct on disallows late binding"

I definition dataRow use datatable select, when for each dataRow,however, i cannot assign one string aa=item(“OUCode”).tostring,system prompt “Option stirct on disallows late binding”

I had used normal at 2018.4, however, it’s failed at 2020.10

Hi @Lori

Try to change for each argumrnt type to system.data.datarow

Thanks

Hi @Lori

You need to try with Activity For each row in datatable!

As you re getting the Output using select method and getting datarow To Datatable.

For Each row in DTRow

Asssign YourVar= Currentrow(“aa”).toString

Regards

DataTable.select return DataRow, I define DTRow as DataRow already.

@Lori in For each activity there is an property called argument type change from object to system.data.datarow.

Thanks

That’s great, it’s true, I forgot to change TypeArugument setting.

1 Like

@Lori happy that your problem solved.

Thanks

1 Like

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