Click or drag to resize

MBSLen Function

X#
Return the length of a strongly typed string containing double-byte characters.

Namespace:  XSharp.VO
Assembly:  XSharp.VO (in XSharp.VO.dll) Version: 2.19
Syntax
 FUNCTION MBSLen(
	cMbString AS STRING
) AS DWORD
Request Example View Source

Parameters

cMbString
Type: String

Return Value

Type: DWord
The length of cMBString in which each double-byte character counts as one character.
If the string is a NULL_STRING, MBSLen() returns zero.
Remarks
This function is like SLen() except that it handles strings containing double-byte characters.
Remarks
Tip Tip
This function is the same as Slen() since .Net has unicode strings
Examples