CLBFILE |
Clbfile is used to declare the variables of the type clob.
[ Local | Global | Extern ] Clbfile list_var_dim
|
Element |
Description |
Restrictions |
|
list_var_dim |
List of var_dim separated by the character ','. |
None. |
|
var_dim |
Name of a variable expressed in one of the following forms : |
None. |
|
name |
variable_name. |
None |
|
maxlen |
Maximum admissible name for the clob file |
Integer expression |
|
lis_dim |
List of exp_dim separated by the character ','. |
Number limited to 4. |
|
exp_dim |
Integer expression representing the number of elements in the variable (from 0 to exp_dim-1) |
|
# Declaration of a clob variable with default length
Local Clbfile WWCLOB
# Declaration of a clob variable with length 3 ( maximum 4094 characters)
Local Clbfile WWCLOB( 3 )
# Declaration of a grid with 2 clobs of a length 3
Local Clbfile WWCLOB( 3 ) ( 2 )
# Declaration of a grid with 2 clobs of a length 3
Local Clbfile WWCLOB( 3 ) ( 0..1)
Clbfile is used to declare variables of the type Clob by assigning to them a maximum length. The clob type is used to store the texts with variable length in the format "rtf" or "txt".
In the case where the number of characters in the string is not given, the clob is created with a maximum length of 0.
It is necessary to specify a maximum length of the clob according to the following :
|
Length |
memory size |
Maximum characters |
|
0 |
1020 |
510 |
|
1 |
2044 |
1022 |
|
2 |
4092 |
2046 |
|
3 |
8188 |
4094 |
|
n |
1024*(2^n) -4 |
512*(2^n) -2 |
It is possible to declare a clob type grid, but in this case, keep an eye on the memory !
|
Error |
Description |
|
|
|
SHORTINT - INTEGER - INTEGER - DECIMAL - CHAR - DATE - LIBELLE - BLBFILE - SETLOB - GLOBAL - LOCAL - EXTERN
|
|