我正在使用以下代码从 .NET Business Connector 获取记录数:
DynRec = DynAx.CreateAxaptaRecord("AddressCountryRegion");
DynRec.ExecuteStmt("select count(Name) from %1 where %1.Name like'I*'");
if (DynRec.Found)
MessageBox.Show((string)DynRec.get_Field("Name"));
有更好的方法吗?例如,获取记录数为整数?