Assign Variable to DataTable Item
I have a DataTable with one row and three columns LINE1, LINE2, LINE3.
The LINE1 value is the "name" for a mailing list, LINE2 is the "address", and LINE3 is the "City, State Zip".
I already have the first record populated, I just need to duplicate the row four times.
I'm using an Assign to add a new row:
dataRow2 = dt.NewRow()
another Assign
dataRow2("LINE1") = "the existing value from row1/col1"
Seems like this should be easy but I cannot get the syntax right
Any assistance is greatly appreciated.
0
-
Hi William,
I found your post because I am attempting the same thing, using the same code, getting errors also. Have you figured out how to add a new datarow and assign data to it?
Thank you.0 -
As of Essentials 4.4 there is an Add DataTable Row activity that makes this a little easier.
@William, it looks like you syntax is correct, but you also need to add the row to the table.
--Ryan0 -
That's something to look forward to - thank you Ryan! 0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
3 Kommentare