Previous Topic

Next Topic

FormatQuantity - MaxBasic Function

FormatQuantity(Quantity: Number[, UOMCode: String, BlankZero: Boolean]): Number

Formats Number to Quantity Decimals. Number is the Quantity, String is an optional UOM Code, Boolean determines whether blank values are displayed as zero, and defaults to True. If String is empty or not a valid UOM Code, formats to the Quantities Decimals set in Decimals, otherwise formats to the Decimals for the UOM Code in String.

FormatQuantity function syntax has these named arguments:

Parameter

Description

Quantity

Required. Number to be formatted.

UOMCode

Optional. UOM Code to format the decimals to.

BlankZero

Optional. If True, returns blank results as 0. Defaults to True.

See Also

Number Functions

Book Contents

Book Index