Shortcut modePermalink

The declaration editor allows you to use the shortcut mode. This mode is activated when you end a line with <Ctrl><Enter>

Supported shortcuts:

  • All identifiers up to the last identifier of a line will become declaration variable identifiers

  • The type of declaration is determined by the last identifier of the line. In this context, the following will apply:

    • B or BOOL gives the result - BOOL

    • I or INT gives the result - INT

    • R or REAL gives the result - REAL

    • S or string gives the result - STRING

  • If no type has been established through these rules, then the type is BOOL and the last identifier will not be used as a type (Example 1.).

  • Every constant, depending on the type of declaration, will turn into an initialization or a string (Examples 2. and 3.).

  • An address (as in %MD12) is extended around the ATATDeclaration>Proc... attribute (Example 4.).

  • A text after a semicolon (;) becomes a comment (Example 4.).

  • All other characters in the line are ignored (e.g., the exclamation point in Example 5.).

Examples

Shortcut

Declaration

A

A: BOOL;

A B I 2

A, B: INT := 2;

ST S 2; A string

ST:STRING(2); (* A string *)

X %MD12 R 5 Real Number

X AT %MD12: REAL := 5.0;(* Real Number *)

B !

B: BOOL;