MBRat2 Function | |
Return the position of the last occurrence of a substring within a string — both the substring and the string can contain double-byte characters.
Namespace:
XSharp.VO
Assembly:
XSharp.VO (in XSharp.VO.dll) Version: 2.21
Syntax FUNCTION MBRat2(
cMBSearch AS STRING,
cMBTarget AS STRING
) AS DWORD
public static uint MBRat2(
string cMBSearch,
string cMBTarget
)
Request Example
View SourceParameters
- cMBSearch
- Type: String
The substring for which to search. - cMBTarget
- Type: String
The string in which to search. (To start at a specific offset, use MBRAt3().)
Return Value
Type:
DWord
The position of
cMBSearch within
cMBTarget.
If
cMBSearch is not found, MBRAt2() returns zero.
Remarks
This function is like MBRAt() except that it returns a DWORD.
Remarks Tip |
---|
This function is the same as Rat2() since .Net has unicode strings |
Examples See Also Reference
MBRat2(String, String)