Click or drag to resize

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
Syntax
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
)

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: Int32
Index 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