How to get Record count?

recCount = ABCShipTrans_ds.numberOfRowsLoaded();

Tips:

How to set text to one control, for example, display the count of record in a IntEdit control: PackageCount

1. Set AutoDeclaration property = true,

recCount = ABCShipTrans_ds.usageCount();
PackageCount.value(recCount);

2. Use display method

display int GetPackageCount()
{
    return ABCShipTrans_ds.numberOfRowsLoaded();
}

set those properties below

DataMethod: GetPackageCount
DataSource: ABCShipTrans
AutoDeclaration: No
原文地址:https://www.cnblogs.com/aot/p/1898855.html