static void PBU_DEV_001(Args _args)
{
System.Data.DataTable _C_CustTable = new System.Data.DataTable("CustTable");
System.Data.DataColumnCollection _C_Columns = _C_CustTable.get_Columns();
System.Data.DataColumn _C_CustAccount;
System.Data.DataColumn _C_CustName;
System.Data.DataRow _C_Row;
System.Data.DataRowCollection _C_Rows = _C_CustTable.get_Rows();
int _i;
int _RowCount;
CustTable _CustTable;
AccountNum _CustAccount;
Name _CustName;
_C_CustAccount = new System.Data.DataColumn("CustAccount", System.Type::GetType("System.String"));
_C_CustName = new System.Data.DataColumn("CustName", System.Type::GetType("System.String"));
_C_Columns.Add(_C_CustAccount);
_C_Columns.Add(_C_CustName);
while
select firstOnly100 _CustTable
{
_C_Row = _C_CustTable.NewRow();
_C_Row.set_Item("CustAccount", _CustTable.AccountNum);
_C_Row.set_Item("CustName", _CustTable.name());
_C_Rows.Add(_C_Row);
}
_RowCount = _C_Rows.get_Count();
for (_i = 0; _i <= _RowCount; _i++)
{
_C_Row = _C_Rows.get_Item(_i);
_CustAccount = _C_Row.get_Item(_C_CustAccount);
_CustName = _C_Row.get_Item(_C_CustName);
info(strFmt("%1,%2", _CustAccount, _CustName));
}
}
No comments:
Post a Comment