Navigation:  Classes > bCodeblock >

bCodeblock:Expression

Print this Topic    Previous pageReturn to chapter overviewNext page

Purpose

The source code of the codeblock.

Class

bCodeblock

Type

Access / Assign

Data Type

String

Description

bCodeblock:Expression defines the source code which is evaluated. All variables which are defined in the access bCodeblock:ArgumentList can be used in the source code.

 

Important notes!
After new source code is assigned, the method bCodeblock:IsCompiled() returns the value FALSE. The changed source code must then be compiled with the method bCodeblock:Compile(). Only after this can be executed with the method bCodeblock:Eval().

Samples

In the following sample an object of the class bCodeblock is created and the source code put afterwards.

 

LOCAL odbsCUSTOMER   AS DBServer

LOCAL oCodeblock     AS bCodeblock

 

// Create DBServer

odbsCUSTOMER := DBServer{"CUSTOMER"}

 

// Create codeblock

oCodeblock := bCodeblock{odbsCUSTOMER}

 

// Define source code

oCodeblock:Expression := "Server:LASTNAME + Server:FIRSTNAME"

 

// Compile source code

IF oCodeblock:Compile()

   // Evaluate source code

   ? oCodeblock:Eval()

ENDIF

See Also

bCodeblock:ArgumentList

bCodeblock:ArgumentValues

bCodeblock:Compile()

bCodeblock:Eval()

bCodeblock:Init()

bCodeblock:Server

bCodeblock:Use()

 


Page url: http://www.YOURSERVER.com/index.html?bcodeblock_expression.htm