To set a dynamic property in the Object Inspector

  1. In a form on the Design tab, click the object for which you want to set dynamic properties.
  2. In the Object Inspector, expand (DynamicProperties) and click (Advanced). If the object does not support dynamic properties, (DynamicProperties) is not displayed.

Tip: If the Object Inspector is arranged by category, (DynamicProperties) is displayed under Configurations.

  1. Click the ellipsis button next to (Advanced) to display the Dynamic Properties dialog box. This dialog lists all of the properties that can be stored in the configuration file.
  2. Select the properties that you want to store in the configuration file.
  3. Optionally, you can override the default key name listed in the Key mapping field.
  4. Click OK.

The dynamic properties are marked with an icon in the Object Inspector.

Delphi 8 for .NET creates an XML file named app.config (for a Windows application) or Web.config (for a Web application) in the project directory. This file lists the dynamic properties and their current values.

7. Compile the application.

Delphi 8 for .NET creates a file named projectname.exe.config (for a Windows application) or projectname.dll.config (for a Web application) in the same directory as the application's executable or DLL file.

Project Management Made Easy

Project Management Made Easy

What you need to know about… Project Management Made Easy! Project management consists of more than just a large building project and can encompass small projects as well. No matter what the size of your project, you need to have some sort of project management. How you manage your project has everything to do with its outcome.

Get My Free Ebook


Post a comment