 | CDUMath Method |
Apply an expression to the database
Namespace:
Geosoft.Desktop.GXNet
Assembly:
geosoft.desktop.gxnet (in geosoft.desktop.gxnet.dll) Version: 2024.2.0.25
Syntaxpublic static void Math(
CDB db,
int line,
CEXP exp
)
public static void Math(
CDB db,
int line,
CEXP exp
)
Public Shared Sub Math (
db As CDB,
line As Integer,
exp As CEXP
)
Public Shared Sub Math (
db As CDB,
line As Integer,
exp As CEXP
)
public:
static void Math(
CDB^ db,
int line,
CEXP^ exp
)
public:
static void Math(
CDB^ db,
int line,
CEXP^ exp
)
static member Math :
db : CDB *
line : int *
exp : CEXP -> unit
static member Math :
db : CDB *
line : int *
exp : CEXP -> unit
Parameters
- db
- Type: GeoEngine.Core.GXNetCDB
Database - line
- Type: SystemInt32
Line handle - exp
- Type: Geosoft.Desktop.GXNetCEXP
Math expression object (EXP)
Remarks
The MATH_DU method will READWRITE lock channels on the left
side of expressions and READONLY lock channels on the right
side of expressions. Channels are unlocked before returning.
Therefore, channels on the left side of an expression cannot
be locked READONLY because the Math_DU attempt to lock the
channel READWRITE will fail. Similarly, channels on the right
side of an expression cannot be locked READWRITE because
Math_DU's attempt to lock the channels READONLY will fail.
If this is confusing, just make sure no channels used in the
expression are locked before calling Math_DU.
See Also