MBLEFT Function | |
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.21
Syntax FUNCTION MBLEFT(
cMBString AS STRING,
wCount AS DWORD
) AS STRING
public static string MBLEFT(
string cMBString,
uint wCount
)
Request Example
View SourceParameters
- 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 |
---|
This function is the same as Left() since .Net has unicode strings |
Examples See Also