Delphi Programming
Advertisement
This page is intended as a supplement to the official documentation on Delphi programming. CodeGear is in the process of putting the Delphi documentation on the Web. Once they have done so, this page will link to the relevant page in the official documentation.
Stub
This article is a stub.
Please help enhance the Delphi Programming Wiki by expanding it.
Info
see the VCL Documentation Guidelines for an overview on doc pages

Unit[]

Description[]

Definition (Delphi 6, 2007, 2010):

function CurrentYear: Word;

Will retrieve the year part of the local system.

Technical Comments[]

(Known issues / Documentation clarifications / Things to be aware of)

Examples[]

(Please provide links to articles/source code that show how to use this item.)

Var
 Years, i : Integer;
Begin
 Years := CurrentYear;
 ComboBox1.Items.Clear;
 For i := -2 to 2 do
   ComboBox1.Items.Add(IntToStr(Years +i));
End;

See Also[]

(Please provide links to items specifically related to this item.)

User Comments/Tips[]

(Please leave your name with your comment.)

Advertisement