Inserting a Text Block

The model developer can insert a Text Block that has been created with the Text Block Editor in the model document. To do so the model developer should know the name of the Text Block that needs to be inserted and optionally the location (path) and project where the Text Block resides in.

Besides this, the model developer needs to know the names of the Field Sets that could be used by the Text Block. For each Field Set a FIELDSET needs to be declared. The fields from the Field Set can then be assigned a value.

The model developer should also make sure that the Microsoft Word styles that are used in the Text Blocks are defined.

To insert the Text Block in the model document the keyword TEXTBLOCK needs to be used. This keyword needs at least the name of the Text Block. It is also possible to use the instruction TEXTBLOCK to insert more than one Text Block. This can be used if a user selected more than one Text Block in a MULTISELECT Text Block question. All Text Blocks selected by the user can be inserted in the model document using the instruction TEXTBLOCK. The field or array that holds the Text Block names can be passed to the instruction TEXTBLOCK using the instruction VAR.

The instruction TEXTBLOCK has extended options to lay out Text Blocks in many different styles or to insert a Text Block in a table.

Note

The field in which the answers are stored of a MULTISELECT Text Block question is a CSV file. The model developer can use the function split_csv to split the field in separate Text Block names that can be used in the model document.