Click or drag to resize

CVVUFindStringItems Method

Searches a VV for items in a second VV, returns indices of those found.

Namespace:  Geosoft.Desktop.GXNet
Assembly:  geosoft.desktop.gxnet (in geosoft.desktop.gxnet.dll) Version: 2024.2.0.25
Syntax
public static void FindStringItems(
	CVV vv_source,
	CVV vv_search,
	int pis_source_sorted,
	int pis_search_sorted,
	int pis_case_tolerant,
	CVV vv_i
)

public static void FindStringItems(
	CVV vv_source,
	CVV vv_search,
	int pis_source_sorted,
	int pis_search_sorted,
	int pis_case_tolerant,
	CVV vv_i
)

Parameters

vv_source
Type: GeoEngine.Core.GXNetCVV
String VV in which to locate items
vv_search
Type: GeoEngine.Core.GXNetCVV
String VV Items to search for
pis_source_sorted
Type: SystemInt32
Is the first VV already sorted?
pis_search_sorted
Type: SystemInt32
Is the second VV already sorted
pis_case_tolerant
Type: SystemInt32
Case tolerance for string comparisons
vv_i
Type: GeoEngine.Core.GXNetCVV
<define>GS_LONG</define> VV of returned indices into the first LST.
Remarks
This is a much more efficient way of determining if items in one VV are found in a second, than by searching repeatedly in a loop. The returned <define>GS_LONG</define> VV contains the same number of items as the "search items" VV, and contains -1 for items where the value is not found, and the index of items that are found. Comparisons are case-tolerant. Non-string VVs are converted to string type VVs (element size 24) internally. The method requires that the VV items be sorted, and will do so internally. Since the input VVs may already be sorted, the method will run faster if this stage can be skipped.
See Also