 | CVVUiSearchText Method |
Search for a text value in a VV
Namespace:
Geosoft.Desktop.GXNet
Assembly:
geosoft.desktop.gxnet (in geosoft.desktop.gxnet.dll) Version: 2024.2.0.25
Syntaxpublic static int iSearchText(
CVV vv,
string text,
int case_sensitive,
int match,
int start,
int dir
)
public static int iSearchText(
CVV vv,
string text,
int case_sensitive,
int match,
int start,
int dir
)
Public Shared Function iSearchText (
vv As CVV,
text As String,
case_sensitive As Integer,
match As Integer,
start As Integer,
dir As Integer
) As Integer
Public Shared Function iSearchText (
vv As CVV,
text As String,
case_sensitive As Integer,
match As Integer,
start As Integer,
dir As Integer
) As Integer
public:
static int iSearchText(
CVV^ vv,
String^ text,
int case_sensitive,
int match,
int start,
int dir
)
public:
static int iSearchText(
CVV^ vv,
String^ text,
int case_sensitive,
int match,
int start,
int dir
)
static member iSearchText :
vv : CVV *
text : string *
case_sensitive : int *
match : int *
start : int *
dir : int -> int
static member iSearchText :
vv : CVV *
text : string *
case_sensitive : int *
match : int *
start : int *
dir : int -> int
Parameters
- vv
- Type: GeoEngine.Core.GXNetCVV
VV to search - text
- Type: SystemString
Text to match - case_sensitive
- Type: SystemInt32
<define>VVU_CASE</define> - match
- Type: SystemInt32
<define>VVU_MATCH</define> - start
- Type: SystemInt32
Index to begin search (-1 for full VV) - dir
- Type: SystemInt32
1: forward search, -1: backward search
Return Value
Type:
Int32Index of first matching text, -1 if not found.
Remarks
Search comparison is made on string comparison
of the data. Returns index of first item matching
the input string.
If start index is -1 or dummy, then full VV is searched.
Use <define>VVU_MATCH_INPUT_LENGTH</define> to match the first part of a string.
This is also recommended for matching numerical values, since
the displayed value in the database may not be the same as the
stored value.
See Also