Value List editor

From RAD Studio
Jump to: navigation, search

Go Up to Property Editors Index

Use the Value List editor at design time to add, edit, load, and save name-value pairs into any property that has been declared as TStrings.

To open the Value List editor:

  1. Place a component that uses a string list on the form.
  2. With that component selected, do one of the following:
  • Click the ellipsis in the Value column for any property that has been declared as TStrings.
  • Double-click the word (TStrings) in the Value column for any property that has been declared as TStrings.

To add items to the value list, type the name of the item in the Key column and its value in the value column. When you click OK, the string list is saved.

To convert the list to text, click Code Editor. The list is displayed on a separate page in the editor where you can edit it using all of the editing commands.

Value List editor context menu

The Value List editor context menu (right-click on the editor) contains the following commands:

Load

Click Load to display the Load String List dialog box, where you can select an existing file to read into the Value List editor.

Save

Click Save to write the current string list to a file. The product opens the Save String List dialog box, where you can specify a directory and file name.

See Also