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.GXNet
Assembly: geosoft.desktop.gxnet (in geosoft.desktop.gxnet.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 VVU_MATCH_INPUT_LENGTH 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(
	CVV oVV1,
	string str2,
	int i3,
	int i4,
	int i5,
	int i6
)

Parameters

oVV1
Type: GeoEngine.Core.GXNetCVV
VV to search
str2
Type: SystemString
Text to match
i3
Type: SystemInt32
See VVU_CASEConstant
i4
Type: SystemInt32
See VVU_MATCHConstant
i5
Type: SystemInt32
index to begin search (-1 for full VV)
i6
Type: SystemInt32
1: forward search, -1: backward search

Return Value

Type: Int32
Index of first matching text, -1 if not found.
See Also