4D v16.3

C_BLOB

Home

 
4D v16.3
C_BLOB

C_BLOB 


 

C_BLOB ( {method ;} variable {; variable2 ; ... ; variableN} )  
Parameter Type   Description
method  Method in Optional name of method
variable  Variable in Name of variable(s) to declare

C_BLOB casts each specified variable as a BLOB variable.

The first form of the command, in which the optional method parameter is NOT passed, is used to declare and type any process, interprocess, or local variable.

Note: This form can be used in interpreted databases.

The second form of the command, in which the optional method parameter IS passed, is used to predeclare to the compiler the result and/or the parameters ($0, $1, $2 etc) for a method. Use this form of the command in order to skip the Typing variables phase while compiling a database, saving compilation time.

WARNING: The second form cannot be executed in interpreted mode. For this reason, if you are using this syntax, keep it in a method that is not executed in interpreted mode. The name of this method must start with “COMPILER.”

Advanced Tip: The syntax C_BLOB(${...}) allows you to declare a variable number of parameters of the same type, under the condition that these are the last parameters for the method. For example, the declaration C_BLOB(${5}) tells 4D and the compiler that starting with the fifth parameter, the method can receive a variable number of parameters of that type. For more information, see the Count parameters command.

See examples in the Compiler Commands section.



See also 

Compiler Commands
Count parameters

 
PROPERTIES 

Product: 4D
Theme: Compiler
Number: 604

This command can be run in preemptive processes

 
HISTORY 

Created: 4D v6

 
ARTICLE USAGE

4D Language Reference ( 4D v16)
4D Language Reference ( 4D v16.1)
4D Language Reference ( 4D v16.2)
4D Language Reference ( 4D v16.3)