| 1 | = SetTareCurrent = |
| 2 | Sets the specified tare weight to the current scale weight |
| 3 | |
| 4 | {{{ |
| 5 | int SetTareCurrent(int nScale = process_scale); |
| 6 | }}} |
| 7 | |
| 8 | == Parameters == |
| 9 | |
| 10 | * nScale - scale number to zero |
| 11 | |
| 12 | == Return Value == |
| 13 | |
| 14 | * Returns OK if successful, otherwise it failed do to motion or other error. Use MnBdGetErrMsg to obtain reason. |
| 15 | |
| 16 | == Remarks == |
| 17 | |
| 18 | |
| 19 | == Examples == |
| 20 | |
| 21 | {{{ |
| 22 | if(SetTareCurrent(1) != OK) |
| 23 | { |
| 24 | DisplayText(0, 0, "Error setting tare"); |
| 25 | } |
| 26 | }}} |
| 27 | |
| 28 | |
| 29 | == See Also == |
| 30 | |
| 31 | * [http://tech.825spectrum.com/trac/wiki/Docs/Prog/Manual/ApplicationLibraries/lib825ev/Weight/MnBdGetErrMsgStr MnBdGetErrMsgStr] |
| 32 | * [http://tech.825spectrum.com/trac/wiki/Docs/Prog/Manual/ApplicationLibraries/lib825ev/Weight/SetTareValue SetTareValue] |
| 33 | * [http://tech.825spectrum.com/trac/wiki/Docs/Prog/Manual/ApplicationLibraries/lib825ev/Weight/ZeroScale ZeroScale] |