Click or drag to resize
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.GXNetX
Assembly: 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.
Syntax
public static int iSearchText(
	CGXNETCore gxNetShared,
	CVV vv,
	string text,
	int case_sensitive,
	int match,
	int start,
	int dir
)

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: Int32
Index of first matching text, -1 if not found.
See Also