Set Macro Name Prefix
\i X P O string::prefix
Parameter |
Type |
Range |
Description |
prefix |
string |
up to 4 ASCII chars (0x01 .. 0xFF) |
string to be prefix |
Sets a prefix of case-sensitive string characters, which will be put in front of any subsequently sent macro name.
Note
- This functionality can be used to support multiple languages without conditional commands or macros. For example, if the macro names for the English language are prefixed with "en_" and for the German language with "de_", the command
\iOE\mmacro\0
would execute macro "en_macro" or "de_macro", dependent on the prior defined macro prefix.
- When addressing macros by index, an offset can be used to realize language switching. (see Set Macro Offset).
- Remove any previously set Macro Name Prefix by entering an empty string as prefix:
\iXPO\0
- The default value for prefix is an empty string. It will be automatically set to default on startup and by the commands Reset All or Reboot Panel Controller if the "Extras on Reset" option on the "Settings" page of iLCD Manager XE is set to "Clear". Selecting "Keep" allows for using the reset commands without loosing e.g. the selected language. This setting is ignored in firmware versions < 3.02.
Example
\iXPOen_\0
Set the macro name prefix to "en_" and will subsequently only consider macros that start with these characters.
Not supported by: DPC3020, DPC2060, DPC10xx
See also:
Draw Touch Field Text Message
Set Touch Field Text Message
Execute Macro
Execute Touch Break Macro
Execute Touch Make Macro
Set Touch Field Break Macro
Set Touch Field Make Macro
Jump to Macro
Set Macro Offset
Set Macro Name Suffix
Set Message Name Prefix
Set Graphic Name Prefix
Set Font Name Prefix
Copyright © demmel products gmbh. All rights reserved.