![](../icons/Help.png) | CVVUiSearchText Method |
Search for a text value in a VV
Available since Oasis montaj version: 5.0.8
License: Available to anyone with an Oasis Montaj license.
Namespace: Geosoft.Desktop.GXNetXAssembly: geosoft.desktop.gxnetx (in geosoft.desktop.gxnetx.dll)
Notes
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.
Syntaxpublic static int iSearchText(
CGXNETCore gxNetShared,
CVV vv,
string text,
int case_sensitive,
int match,
int start,
int dir
)
Public Shared Function iSearchText (
gxNetShared As CGXNETCore,
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(
CGXNETCore^ gxNetShared,
CVV^ vv,
String^ text,
int case_sensitive,
int match,
int start,
int dir
)
static member iSearchText :
gxNetShared : CGXNETCore *
vv : CVV *
text : string *
case_sensitive : int *
match : int *
start : int *
dir : int -> int
Parameters
- gxNetShared
- Type: GeoEngine.Core.GXNetXCGXNETCore
A shared CGXNETCore - vv
- Type: GeoEngine.Core.GXNetXCVV
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.
See Also