Version 3 (modified by 14 years ago) ( diff ) | ,
---|
IsWtUnitsChanged
Checks whether the weight units such as "lb" or "kg" is different from the last time IsWtUnitsChanged was called.
bool IsWtUnitsChanged(int nScale);
Parameters
- nScale - scale number
Return Value
- Returns true if the weight units of the specified scale is changed, or false if the weight units is the same as the last time IsWtUnitsChanged was called.
Remarks
The value returned is from an internal memory buffer from the last MnBdRead? that received a weight for the specified scale. An application program should be structured properly for this data to be updated when needed.
Example
if(IsWtUnitsChanged(1)) { DisplayText(0, 0, GetCurUnitsLabel(1)); }
See Also
Note:
See TracWiki
for help on using the wiki.