Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


ID: 17758, Class Variables

by Steve Kramer Email: Anonymous


Please give us Class Variables
Download Details
FTP  download also available 0 bytes
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For Delphi, Version 1.0  to 6.0 10 downloads
Copyright: No significant restrictions


Size: 0 bytes
Updated on Wed, 03 Apr 2002 22:31:34 GMT
Originally uploaded on Wed, 03 Apr 2002 22:31:18 GMT
Description
Sometimes, I need a property whose value remains constant for all instances of a class. If I change the property's value, the value of that property in all instances would reflect the new value.

Currently, I have to accomplish this by creating a separate class containing the "class properties." I instantiate a single instance of this class in the initialization section of the unit and assign it to a global variable. Inside the main class, I create a class function returning a reference (via the global variable) to the "class properties."

   Latest Comments  View All Add New

Move mouse over comment to see the full text

Could not retrieve comments. Please try again later.

Server Response from: ETNACDC03