Version 4 (modified by 14 years ago) ( diff ) | ,
---|
FormatGrossWt
Format a string representation of the gross weight
string FormatGrossWt(int nScale, int nLen = 7); char* FormatGrossWt(int nScale, char* pszBuffer, int nLen = 7);
Parameters
- nScale - scale number
- nLen - length to format the string, spaces will be padded to the left.
Return Value
- Returns the string formatted weight.
Remarks
This will format the raw gross weight into appropriate divisions and add zeros for zero weight if necessary based on the interval. For example, for interval of 20 lb is specified and the weight is zero the output will be " 00".
Examples
string strWt = FormatGrossWt(1); DisplayText(0, 0, strWt);
char szWt[20]; FormatGossWt(1, szWt); DisplayText(0, 0, szWt);
See Also
Note:
See TracWiki
for help on using the wiki.