Including comments in scripts

www.kxcad.net Home > Electronic Index > Altium(Protel) Index


Your Ad Here

In a script, comments are non-executed lines of code which are included for the benefit of the programmer. Comments can be included virtually anywhere in a script. Any text following //, or enclosed with (* *) or {} are ignored by Delphi Script.

// Comment type example

//This whole line is a comment

{} Comment type example

{This whole line is a comment}

(* *) comment type example

(*

This whole line is a comment

This whole line is a comment

This whole line is a comment

*)

Comments can also be included on the same line as executed code. For example, everything after the semi colon in the following code line is treated as a comment.

ShowMessage (‘Hello World’);  //Display Message

See also

Writing Scripts