Click or drag to resize
CDBiExistSymb Method
This method checks to see if the specified symbol exists in the database.

Available since Oasis montaj version: 5.0.0
License: Available to anyone.  

Namespace: GeoEngine.Core.GXNet
Assembly: geoengine.core.gxnet (in geoengine.core.gxnet.dll)
Notes
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", DB_SYMB_CHAN) is now equivalent to: GetXYZChan_DB(hDB, DB_CHAN_X, sXCh); iExistSymb_DB(hDB, sXCh, DB_SYMB_CHAN); 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.
Syntax
public int iExistSymb(
	string str1,
	int i2
)

Parameters

str1
Type: SystemString
Name of Symbol
i2
Type: SystemInt32
See DB_SYMB_TYPEConstant

Return Value

Type: Int32
0 - Symbol does not exist in the database 1 - Symbol Exists
See Also