How to place a macro parameter into a text?

FAQ #100672

Especially when writing FBoxes it might be useful to fill a PCD text with e.g. the name of an FBox. This can be achieved by using the ".s" postfix.

 

Possible usage
The example below shows how a the content of a macro parameter can be placed into a PCD text.

 

Example
Below an example of the usage of the ".s" postifix:

  TextMacro MACRO param
  TEXT 100 "Hello ", param.s, " !"   
    ENDM  
  TextMacro(world)   

The resulting text in the PCD will be:

       TEXT 100 "Hello world !"

 

Categories

Local FAQ Deutschland / SEdit (IL programming)

PG5 2.0 / FBox Builder

Last update: 20.05.2015 19:51

First release: 29.01.2007 16:05

Views: 2617

The requested software / document is no longer marketed by Saia-Burgess Controls AG and without technical support. It is an older software version which can be operated only on certain now no longer commercially available products.

Download