Click or drag to resize

MBRight Function

X#
Return a substring beginning with the last character of a string containing double-byte characters.

Namespace:  XSharp.VO
Assembly:  XSharp.VO (in XSharp.VO.dll) Version: 2.21
Syntax
 FUNCTION MBRight(
	cMbString AS STRING,
	wCount AS DWORD
) AS STRING
Request Example View Source

Parameters

cMbString
Type: String
wCount
Type: DWord
The number of characters to extract.

Return Value

Type: String
The rightmost wCount characters of cMBString — each double-byte character counts as one character.
If wCount is zero, MBRight() returns a NULL_STRING.
If wCount is larger than the length of the string, MBRight() returns cMBString.
Remarks
This function is like Right() except that it handles strings containing double-byte characters.
Remarks
Tip Tip
This function is the same as Right() since .Net has unicode strings
Examples