Click or drag to resize

MBAtC Function

X#
Return the position of the first occurrence of a sub string within a string, without regard for case — both the substring and the string can contain double-byte characters.

Namespace:  XSharp.VO
Assembly:  XSharp.VO (in XSharp.VO.dll) Version: 2.19
Syntax
 FUNCTION MBAtC(
	cMBSearch AS STRING,
	cMBTarget AS STRING
) AS DWORD
Request Example View Source

Parameters

cMBSearch
Type: String
The substring to search for.
cMBTarget
Type: String
The string in which to search.

Return Value

Type: DWord
The position of the first occurrence of cMBSearch within cMBTarget.
If cMBSearch is not found, MBAtC() returns zero.
Remarks
This function is like AtC() except that it handles strings containing double-byte characters.
Remarks
Tip Tip
This function is the same as AtC() since .Net has unicode strings
Examples