MBAtLine Function | |
Return the line number of the first occurrence of a substring within a multiple line string — 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 MBAtLine(
cMBSearch AS STRING,
cMBTarget AS STRING
) AS LONG
public static int MBAtLine(
string cMBSearch,
string cMBTarget
)
Request Example
View SourceParameters
- cMBSearch
- Type: String
The substring to search for. - cMBTarget
- Type: String
The string in which to search.
Return Value
Type:
Long
The position of the first occurrence of
cMBSearch within
cMBTarget.
If
cMBSearch is not found, MBAtLine() returns zero.
Remarks
This function is like AtLine() except that it handles strings containing double-byte characters.
Remarks Tip |
---|
This function is the same as AtLine() since .Net has unicode strings |
Examples See Also