Click or drag to resize

NTrim Function

Convert a numeric expression to a left-trimmed string.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.08
Syntax
 FUNCTION NTrim(
	nNum AS USUAL
) AS STRING
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#
? NTrim(234)                        // "234"
? LTrim(Str(234))                // "234"
? Str(234)                                // "       234"
See Also