square brackets

From Lazarus wiki
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

English (en) suomi (fi)


[ ]

The left square bracket [ is defined in ASCII as having the value is 91 (hexadecimal $5B). In Pascal it always appears in conjunction with a corresponding right square bracket ] is defined in ASCII as having the value is 93 (hexadecimal $5D) constituting a pair.

Such a pair is used to:

  • Static array the type definition
  • Accessing array Elements. An element is accessed by indexing the array name. This is done by placing the index or variable's identifier of the element within square brackets after the name of the array.
  • Define an empty set : someset := [];
  • Using brackets to hold set elements
  • Custom Attributes


navigation bar: topic: Pascal symbols
single characters

+ (plus)  •  - (minus)  •  * (asterisk)  •  / (slash)
= (equal)  •  > (greater than)  •  < (less than)
. (period)  •  : (colon)  •  ; (semi colon)
^ (hat)  •  @ (at)
$ (dollar sign)  •  & (ampersand)  •  # (hash)
' (single quote)

character pairs

<> (not equal)  •  <= (less than or equal)  •  := (becomes)  •  >= (greater than or equal)

 •  >< (symmetric difference)  •  // (double slash)