Delphi Programming

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

Comment

By Zarko Gajic, About.com

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

Build Your Own Website

Step-by-step advice on how to do everything from choosing a Web host to promoting your content. More >

Connect Your Home Computers

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

Delphi Programming

  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.