Difference between revisions of "Ord"
From Free Pascal wiki
Jump to navigationJump to search (→see also: system.ord) |
m (resolve Category: Pages using deprecated enclose attributes, remove explicit categorization in Category: Pascal already done via language bar template {{Ord}}) |
||
Line 1: | Line 1: | ||
{{Ord}} | {{Ord}} | ||
− | The language construct <syntaxhighlight lang="pascal" | + | The language construct <syntaxhighlight lang="pascal" inline>ord(someVariable)</syntaxhighlight> evaluates to the index of any ordinal type, including, but not limited to any integer type and sub-ranges thereof, [[Char|<syntaxhighlight lang="pascal" inline>char</syntaxhighlight>]], [[Boolean|<syntaxhighlight lang="pascal" inline>boolean</syntaxhighlight>]], or any enumerative type. |
== see also == | == see also == | ||
− | * {{Doc|package=RTL|unit=system|identifier=ord|text=<syntaxhighlight lang="pascal" | + | * {{Doc|package=RTL|unit=system|identifier=ord|text=<syntaxhighlight lang="pascal" inline>ord</syntaxhighlight>}} documented in the [[System unit|system unit]] |
− | * [[Chr|<syntaxhighlight lang="pascal" | + | * [[Chr|<syntaxhighlight lang="pascal" inline>chr</syntaxhighlight>]] returns a character by its index |
− | |||
− |
Revision as of 16:26, 6 August 2022
│
Deutsch (de) │
English (en) │
français (fr) │
русский (ru) │
The language construct ord(someVariable)
evaluates to the index of any ordinal type, including, but not limited to any integer type and sub-ranges thereof, char
, boolean
, or any enumerative type.
see also
ord
documented in the system unitchr
returns a character by its index