Variables and fields are passed in typed form, i.e. depending on the content of the database as text, number, etc. The databinding usually cares for that automatically, an explicit passing/assignment of the type is only necessary when custom data is passed additionally. The correct data type is usually also preselected (e.g. when passing DateTime objects).
The following table shows the most important data types.
Data type |
Usage |
LlFieldType.Text |
Text. |
LlFieldType.RTF |
RTF formatted text. This field type can be used in a RTF field or RTF object in the Designer. |
LlFieldType.Numeric |
Integer. The databinding automatically differs between floating point numbers and integer values. |
LlFieldType.Boolean |
Logical values. |
LlFieldType.Date |
Date and time values (DateTime). |
LlFieldType.Drawing |
Drawing. Generally, the file name is passed. Directly passing a memory handle is possible for Bitmaps and EMF files. Databinding automatically checks the content of Byte fields and declares them as drawing if a suitable format is found. |
LlFieldType,Barcode |
Barcode. Barcodes are most easily passed as instances of the LlBarcode class directly in the Add methods of the Variables and fields property. |
LlFieldType.HTML |
HTML. The content of the variable is a valid HTML stream, a file name or an URL. |