Vcl.DBCtrls.TDBRadioGroup.Values

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Values: TStrings read FValues write SetValues;

C++

__property System::Classes::TStrings* Values = {read=FValues, write=SetValues};

Properties

Type Visibility Source Unit Parent
property published
Vcl.DBCtrls.pas
Vcl.DBCtrls.hpp
Vcl.DBCtrls TDBRadioGroup

Description

Determines the values of the radio buttons.

When the user selects a radio button, the "value" of that button is written to the linked field in the database. By default, the value of a button is simply the caption that appears next to it on the screen, as determined by the Items property.

In some cases, you may want the values of the radio buttons to differ from their captions. For example, if you use radio buttons to represent a database field whose content can be "Y" or "N", you may want the buttons' captions to be "Yes" and "No". In this case, you would enter "Yes" and "No" in the Items list, and enter "Y" and "N" in the Values list.

You can edit the Values list in the Object Inspector, just as you would the Items list. To keep the buttons' captions as their values, leave the Values property empty.

See Also