| 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.GXNetAssembly: 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
)
Public Function iExistSymb (
str1 As String,
i2 As Integer
) As Integer
public:
int iExistSymb(
String^ str1,
int i2
)
member iExistSymb :
str1 : string *
i2 : int -> int
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