A_Set_Unit method
A_Set_Unit()
PURPOSE Setup measurement unit (metric or inches). SYNTAX int A_Set_Unit(char unit); PARAMETER unit; The value of unit as follows: +------+---------------------------+ | unit | REMARK | +------+---------------------------+ | m | Set measurement in metric | +------+---------------------------+ | n | Set measurement in inches | +------+---------------------------+ RETURN 0 -> OK. Reference AW-Error.txt file. EXAMPLE A_Set_Unit('n'); REMARK The A_Set_Unit function is used to set measurement in metric or inches.
Implementation
int A_Set_Unit(
String unit,
) {
assert(unit.length == 1);
assert(unit == 'm' || unit == 'n', 'Valid values are: m, n');
return _A_Set_Unit(
unit.codeUnitAt(0),
);
}