Difference between revisions of "Colon"

From Lazarus wiki
Jump to navigationJump to search
(Colon is used in Write and Writeln)
Line 1: Line 1:
<div style="float:left; margin: 0 25px 20px 0; padding:40px; font-size:500%; font-family: Georgia; background-color: #f9f9f9; border: 2px solid #777777;">:</div>
+
<div style="float:left; margin: 0 25px 20px 0; padding:50px; font-size:500%; font-family: Georgia; background-color: #f9f9f9; border: 2px solid #777777;">:</div>
  
  
Line 11: Line 11:
  
 
* It is used to indicate a label.
 
* It is used to indicate a label.
 +
 +
* It is used to separate the optional field width specifier from the value for a Write or Writeln parameter.
  
  

Revision as of 07:42, 4 June 2012

:


The symbol : (pronounced "colon") is used in Pascal in several ways.

  • It is used to indicate a case statement entry.
  • It separate a function declaration with the function type.
  • It is used to indicate a label.
  • It is used to separate the optional field width specifier from the value for a Write or Writeln parameter.




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)


An editor has declared this article to be a stub, meaning that it needs more information. Can you help out and add some? If you have some useful information, you can help the Free Pascal Wiki by clicking on the edit box on the left and expanding this page.