Back

 


Constants


 
Constants are used to name values that do not change during program
execution (not like Variables).

Example:

const crMyCursor = 1;
 

More examples:

const
   Name = 'Carl Wilson';
   Pi = 3.14;

procedure TForm1.Button1Click(Sender: TObject);
begin
    ShowMessage('I Can Hear Music singer ' + Name');
end;

You can also specify a constants type:

const
   I : Integer = 50;
 
 


Back

Copyright © 1998-2001 James M Sandbrook & Sandbrook Software. All rights reserved.
Do not duplicate or redistribute in any form.