progress-4glepicorerp

Progress ABL to C# - How to convert "EMPTY temp-table" statement in C#?


I'm currently converting a BPM from Epicor 9 to Epicor 10 (Progress ABL to C#). I came across this statement "EMPTY temp-table" in the progress code. I was wondering what is the equivalent of this in C#?

EMPTY temp-table ttRcvHead NO-ERROR.

Does simply assigning a 'null' to the variable does the job?

ttRcvHead = null;

Or creating a new object of the type is the right thing to do here?

ttRcvHead = new Erp.Tablesets.RcvHeadRow();

Solution

  • On your datatable:

    myDataTable.Rows.Clear();

    https://msdn.microsoft.com/en-us/library/system.data.datarowcollection(v=vs.110).aspx