Click or drag to resize
CVVUFindStringItems Method
Searches a VV for items in a second VV, returns indices of those found.

Available since Oasis montaj version: 7.3
License: Available to anyone with an Oasis Montaj license.  

Namespace: Geosoft.Desktop.GXNetX
Assembly: geosoft.desktop.gxnetx (in geosoft.desktop.gxnetx.dll)
Notes
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.
Syntax
public static void FindStringItems(
	CGXNETCore gxNetShared,
	CVV vv_source,
	CVV vv_search,
	int pis_source_sorted,
	int pis_search_sorted,
	int pis_case_tolerant,
	CVV vv_i
)

Parameters

gxNetShared
Type: GeoEngine.Core.GXNetXCGXNETCore
A shared CGXNETCore
vv_source
Type: GeoEngine.Core.GXNetXCVV
String VV in which to locate items
vv_search
Type: GeoEngine.Core.GXNetXCVV
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.GXNetXCVV
<define>GS_LONG</define> VV of returned indices into the first LST.
See Also