| 2 | Checks whether the weight units such as "lb" or "kg" is different from the last time IsWtUnitsChanged was called. |
| 3 | |
| 4 | {{{ |
| 5 | bool IsWtUnitsChanged(int nScale); |
| 6 | }}} |
| 7 | |
| 8 | == Parameters == |
| 9 | |
| 10 | * nScale - scale number |
| 11 | |
| 12 | == Return Value == |
| 13 | |
| 14 | * 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. |
| 15 | |
| 16 | == Remarks == |
| 17 | |
| 18 | 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. |
| 19 | |
| 20 | == Example == |
| 21 | |
| 22 | {{{ |
| 23 | if(IsWtUnitsChanged(1)) |
| 24 | { |
| 25 | DisplayText(0, 0, GetCurWtUnitsLabel(1)); |
| 26 | } |
| 27 | }}} |
| 28 | |
| 29 | |
| 30 | == See Also == |
| 31 | |
| 32 | * [http://tech.825spectrum.com/trac/wiki/Docs/Prog/Manual/ApplicationLibraries/lib825ev/Weight/GetChangedTareWt GetChangedTareWt] |
| 33 | * [http://tech.825spectrum.com/trac/wiki/Docs/Prog/Manual/ApplicationLibraries/lib825ev/Weight/ResetPrevTareWt ResetPrevTareWt] |
| 34 | * [http://tech.825spectrum.com/trac/wiki/Docs/Prog/Manual/ApplicationLibraries/lib825ev/Weight/IsTareWtChanged IsTareWtChanged] |
| 35 | * [http://tech.825spectrum.com/trac/wiki/Docs/Prog/Manual/ApplicationLibraries/lib825ev/Weight/IsNetWtChanged IsNetWtChanged] |