Click or drag to resize

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
Syntax
public static void Math(
	CDB db,
	int line,
	CEXP exp
)

public static void Math(
	CDB db,
	int line,
	CEXP exp
)

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