A text objects consists of multiple paragraphs. Each of these paragraphs does have specific content. This can be either a variable or a formula which combines multiple data contents. To display single variables, usually no special conversion is required. If multiple variables of a different type (see section Data Types) are to be combined within a formula, the single parts have to be converted to the same data types (e.g. string). An example for the combination of numbers and strings would be:
"Total: "+Str$(Sum(Article.Price),0,2)
The following table lists some of the conversion functions, which are frequently needed in this context.
From / To |
Date |
Number |
Picture |
Barcode |
Text |
Date |
- |
DateToJulian() |
- |
- |
Date$() |
Number |
JulianToDate() |
- |
- |
Barcode(Str$()) |
FStr$() |
Picture |
- |
- |
- |
- |
Drawing$() |
Barcode |
- |
Val(Barcode$()) |
|
- |
Barcode$() |
Text |
Date() |
Val() |
Drawing() |
Barcode() |
- |