How to use this VB in C#

Hi,

I would like to add data row use variable. May i know how to use this variable add to data table?

{Operation.ToString(), UserName.ToString(), EventTime.ToString(), Application.ToString, ComputerName.ToString()}

Hi @balaraj.pubalan ,

Welcome to the community.

Could you elaborate a bit more, you want to use Add Data Row activity howwver want to use a vraible there, right?

give a try at

new object[]{Operation.ToString(), UserName.ToString(), EventTime.ToString(), Application.ToString, ComputerName.ToString()}
1 Like

Hi Prateek,
Yes. correct. i already have vraible to insert into data table by array row. Thanks.

Hi,

it’s necessary to add new object[] at the begiing of the expression and add () after Application.ToString
as the following.

new object[] {Operation.ToString(), UserName.ToString(), EventTime.ToString(), Application.ToString(), ComputerName.ToString()}

image

Regards,

1 Like

Whats the validation error in the activity?

Hi,

It is resoolve now. Love you guys :smiley:

1 Like

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