 | CEXPCreate Method |
This method creates an EXP object.
Namespace:
Geosoft.Desktop.GXNetX
Assembly:
geosoft.desktop.gxnetx (in geosoft.desktop.gxnetx.dll) Version: 2024.2.0.25
Syntaxpublic static CEXP Create(
CGXNETCore gxNetShared,
CDB db,
string formula,
int unused
)
public static CEXP Create(
CGXNETCore gxNetShared,
CDB db,
string formula,
int unused
)
Public Shared Function Create (
gxNetShared As CGXNETCore,
db As CDB,
formula As String,
unused As Integer
) As CEXP
Public Shared Function Create (
gxNetShared As CGXNETCore,
db As CDB,
formula As String,
unused As Integer
) As CEXP
public:
static CEXP^ Create(
CGXNETCore^ gxNetShared,
CDB^ db,
String^ formula,
int unused
)
public:
static CEXP^ Create(
CGXNETCore^ gxNetShared,
CDB^ db,
String^ formula,
int unused
)
static member Create :
gxNetShared : CGXNETCore *
db : CDB *
formula : string *
unused : int -> CEXP
static member Create :
gxNetShared : CGXNETCore *
db : CDB *
formula : string *
unused : int -> CEXP
Parameters
- gxNetShared
- Type: GeoEngine.Core.GXNetXCGXNETCore
A shared CGXNETCore - db
- Type: GeoEngine.Core.GXNetXCDB
Database Object - formula
- Type: SystemString
Expression using channel names - unused
- Type: SystemInt32
Legacy parameter, no longer used.
Return Value
Type:
CEXPEXP Object
Remarks
Expressions are strings that contain C-like math to be
applied to channels in a database. For example, following
an expression:
::
"@a = mag-64000; @b = gravity*100;
$sRatio = @a/@b;
MULT = @a *@b;"
Rules:
;
terminates a sub-expression
@
prefix to a temporary name, which is a double precision
floating point number to be used later in the same
expression.
$
prefix to a local GX variable name. Such names will be
evaluated to the variable value at the time Create_EXP
is called.
All other tokens are assumed to be channel names.
See Also