Click or drag to resize

NTrim Function

X#
Convert a numeric expression to a left-trimmed string.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.19
Syntax
 FUNCTION NTrim(
	nNum AS USUAL
) AS STRING
Request Example View Source

Parameters

nNum
Type: Usual
The expression to convert to a string.

Return Value

Type: String
Remarks
NTrim() returns the same value as LTrim(Str(nNum)). Thus, any conversion rules that apply to the Str() function also apply to the NTrim() function.
Examples
This example compares the output of NTrim() to that of Str():
X#
1? NTrim(234)            // "234"
2? LTrim(Str(234))        // "234"
3? Str(234)                // "       234"
See Also