Logged out, click to login

JEDI Online help - Details



Back to unit JvAppStorage.pas Back Edit Search Administration

TJvCustomAppStorage.OnTranslatePropertyName

Summary
Event to translate the names under which the values were stored with the backend engine.

Parameters
Sender - AppStorage Instance
Instance - Instance of the Parent object which is stored
Name - Name to be translated. The changed name is given back in the same parameter
Reading - Flag if the appstorage instance is reading or writing in this moment. This flag is mainly for information. It has no change on the implementation.

Description
This event can be used to translate the names under which the values were stored in the backend engine. For example: Storing a published property object property "Custo" can be translated to "Customer Number", which is more readable.<br> <br> Sample:<br> <br> <CODE><PRE> procedure TForm2.OptionsRegistryStorageTranslatePropertyName( Sender: TJvCustomAppStorage; Instance: TPersistent; var Name: String; const Reading: Boolean); begin if Name = 'DevNameEdit_Text' then Name := 'Developer_Name' else if Name = 'MyNameEdit_Text' then Name := 'My_Name' else if Name = 'BoolCheckBox_Checked' then Name := 'This_Is_Boolean' else if Name = 'IntUpDown_Position' then Name := 'This_Is_Integer'; end; </PRE></CODE>

See Also
TJvAppStoragePropTranslateEvent

Last changed by obones on 2011-07-03 13:36:45 CEST

Copyright (c) 2004 by the JVCL Team; all rights reserved
Uses PclZip by phpconcept and parts of the PEAR library