
In your program, you want to use a text that is translatable.
Examples
You want to create a text symbol from the following write statement:
WRITE text-001.
The text symbol is created in the text pool and activated.
Example
The write statement is the same as it was before execution because the text content has been added in the creation wizard.
| Description | Code Example before Execution | Code Example after Execution | Procedure | Differences |
|---|---|---|---|---|
| You can write a text followed by a certain text key enclosed in brackets. | greeting = 'hello'(B01). | greeting = 'hello'(B01). | Use quick assists to create or edit the text symbol. |
|
| You can write a text without providing any text key. | print( 'Page was printed!' ). | print( 'Page was printed!'(100) ). | Use the quick assist to create the text symbol. |
Note If the same already exists as a text symbol, you will get
a quick assist proposal to reuse the text symbol.
|