Click or drag to resize

CDBiExistSymb Method

This method checks to see if the specified symbol exists in the database.

Namespace:  GeoEngine.Core.GXNetX
Assembly:  geoengine.core.gxnetx (in geoengine.core.gxnetx.dll) Version: 2024.2.0.25
Syntax
public int iExistSymb(
	string symb,
	int type
)

public int iExistSymb(
	string symb,
	int type
)

Parameters

symb
Type: SystemString
Name of Symbol
type
Type: SystemInt32
<define>DB_SYMB_TYPE</define>

Return Value

Type: Int32
0 - Symbol does not exist in the database 1 - Symbol Exists
Remarks
For backward compatibility with GXs not employing the GetXYZChan_DB function, the following behaviour has been introduced as of v5.1.3: (also true for "Y"). iExistSymb_DB(hDB, "X", <define>DB_SYMB_CHAN</define>) is now equivalent to: GetXYZChan_DB(hDB, <define>DB_CHAN_X</define>, sXCh); iExistSymb_DB(hDB, sXCh, <define>DB_SYMB_CHAN</define>); In other words, the current X or Y is searched for, not necessarily the literal "X" or "Y". This ensures that newer databases, which might have "Easting" and "Northing" (or other similar names) instead of "X" and "Y" will still work with older GXs expecting "X" and "Y". The new iExistChan_DB searches using the exact channel name.
See Also