Watch, Follow, &
Connect with Us

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




ID: 28146, RTTI INI Object

by Atle Smelvær Email: Anonymous


Small simple sample of using RTTI and attributes to make simple INI file objects that pushes values to internal properties/fields automatically.
Download Details
FTP  download also available
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 12.0  to 15.0 199 downloads
Copyright: No significant restrictions


Terms of use: Embarcadero use at your own risk disclaimer


Size: 1,772 bytes
Updated on Wed, 24 Nov 2010 15:25:46 GMT
Originally uploaded on Wed, 24 Nov 2010 12:06:05 GMT
SHA1 Hash: 951B7C65C4DDD161AE3BA4461FEB2EB3445818FD
MD5 Hash: 7016D643CDFB6B7F77F8FAF30ABE54DF

    Explore the files in this upload

Description
Sample use:

TYourIniObject = class(TIniObject)
public
SomeValue: double; // Saved to section 'TYourIniObject', name 'SomeValue'
[Ini('name','section')]
SomeText: string; // Saved to section 'section', name 'name'
end;

[IniSection('section')]
TMoreIni = class(TIniObject)
public
[Ini('NewVal'),Default(5.2)]
SomeValue: double; // Saved to section 'section', name 'NewVal', default value 5.2
[IniSection('newsection'),Default('TestValue')]
NewText: string; // Saved to section 'newsection', name 'NewText', default 'TestValue'
end;

For more information, see http://www.smelvaer.com

   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