Getting Error when Assigning a Datarow to a variable

Getting Error when Assigning a Datarow to a variable whats wrong in the code syntax

1 Like

Test to change Let to Dim.

1 Like

@devasaiprasad_K ,

What are you trying to achieve?

Thanks,
Ashok :slight_smile:

1 Like

Hi @devasaiprasad_K

Can you share the code what you have written.

Regards

1 Like

@devasaiprasad_K

Are you trying something like this?

dt.AsEnumerable.ToList.ForEach(Sub(r) r("ColumnName") = If(Condition,"0",r("RequiredColumn").ToString))

Cheers