Go Back

User login

Frontpage Sponsor


Google search

For ERP LN feature pack upgrade, what method of install are you using?
Installation Wizard into existing VRC
Installation Wizard into new VRC
Manual into existing VRC
Manual into new VRC
Total votes: 49

Baanboard at LinkedIn

Reference Content

Expanding text variables
By patvdv at 26 Feb 2008 - 21:57

Expanding text variables

Variables or expressions that are included in text lines can be expanded or substituted for report purposes. You must set the variable lattr.textexpand=TRUE if you want this to happen. Expressions are internally evaluated by the function expr.compile().

Customers can use variables in texts. For example, "address", "city", "salary" and so on. Customers must be informed about these variables so that they can use them.


The following is the syntax for variables and expressions included in text lines:

$variable      or
${expression}  or   #{expression}

When the $ symbol if used, the text moves over to accommodate the expanded variable or expression. When the # symbol is used, the expanded variable or expression overwrites existing text.


The following is an example of text created by using the text manager. The text includes both variables and expressions that can be expanded/substituted for report purposes.

 To:     $surname $christian name        #date   , Ede
         $ZIP code  $city

 Dear $christian name:
 We have the pleasure of informing you that, as of $date, your salary has been
 raised by 5%. For you this implies a gross amount of
 ${edit( salary + ( salary * 0.05 ), "ZZZZ9,ZZ" )} per month.

                                 Kind regards,  $Mgr.

Related topics

Average: 3 (1 vote)

All times are GMT +2. The time now is 01:06.

©2001-2018 - -