1. Home
  2. Computing & Technology
  3. Delphi Programming

Comment

By Zarko Gajic, About.com Guide

Definition: The purpose of adding comments to Delphi code is to provide more program readability using understandable description of what your code is doing.

A comment is a note to yourself or another programmer; it is ignored by the compiler.

There are several ways to construct comments:

{ Text between a left brace and a right brace constitutes a comment. }

(* Text between a left-parenthesis-plus-asterisk and an asterisk-plus-right-parenthesis also constitutes a comment. *)

// Any text between a double-slash and the end of the line constitutes a comment.

Also Known As: REM meaning "Remark in Basic"
Explore Delphi Programming
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Delphi Programming
  4. Getting Started with Delphi
  5. Delphi Programming Glossary
  6. Comment - Glossary - Delphi Programming

©2009 About.com, a part of The New York Times Company.

All rights reserved.