Member attributes: StorageOfConstants
This attribute controls the storage location of constant members when generating code for a particular profile member.
Syntax
Blob
BlobIfMulilingual
BlobIfMulilingualAndString
BlobIfString
Code
Discussion
The attribute Storage determines the location where the data belonging to constants should be stored. This attribute can assume one of the following values:
Value |
Description |
---|---|
Blob |
The data is stored in a separate so-called Blob file. The generated code limits to store references to constants existing in the separate Blob file. The contents of constants are thus not a part of the resulting binary anymore. They can be exchanged restrospectively by simply replacing the Blob file and without needing to recompile the binary. |
BlobIfMulilingual |
The same as Blob, however the effect is limited to constants which contain multiple language depending values only. Non multilingual constants are not affected resulting in their data being stored directly in generated code. |
BlobIfMulilingualAndString |
The same as Blob, however the effect is limited to constants which contain multiple language depending values only and the values are strings. Non multilingual constants or constant declared with type other than string are not affected resulting in their data being stored directly in generated code. |
BlobIfString |
The same as Blob, however the effect is limited to constants which contain strings values only. Constant declared with type other than string are not affected resulting in their data being stored directly in generated code. |
Code |
The data is stored in the generated code. After compiling the generated code, the affected constants are fixed part of the binary and can't be exchanged retrospectively without recompiling the application. Before version 14, this was the unique approach to manage constant data in Embedded Wizard. |
TIP
With the attribute StorageOfConstants you determine the global mode affecting per default all constants or a set of them. This setting can be overridden for each constant member individually by using its attribute Storage.
Modify the attribute
To inspect or modify the value of a StorageOfConstants attribute, select first the affected profile member. Thereupon, the attribute is listed in the middle area of Inspector. Please note the assistant you can activate by clicking on the button right to the attribute:
Please note, the attribute can be hidden if the Platform Package selected in the particular profile member doesn't support Blob files.