Click or drag to resize

MBTrim Function

X#
Remove trailing spaces — including double-byte spaces — from a string.

Namespace:  XSharp.VO
Assembly:  XSharp.VO (in XSharp.VO.dll) Version: 2.21
Syntax
 FUNCTION MBTrim(
	cMBString AS STRING
) AS STRING
Request Example View Source

Parameters

cMBString
Type: String
The string to trim.

Return Value

Type: String
cMBString with the trailing spaces removed.
If cMBString is a NULL_STRING or all spaces, MBTrim() returns a NULL_STRING.
Remarks
This function is like Trim() except that it handles strings containing double-byte characters.
Remarks
Tip Tip
This function is the same as Trim() since .Net has unicode strings
Examples