Click or drag to resize

MBLEFT Function

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

Namespace:  XSharp.VO
Assembly:  XSharp.VO (in XSharp.VO.dll) Version: 2.19
Syntax
 FUNCTION MBLEFT(
	cMBString AS STRING,
	wCount AS DWORD
) AS STRING
Request Example View Source

Parameters

cMBString
Type: String
The string from which to extract characters.
wCount
Type: DWord
The number of characters to extract.

Return Value

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