Recent

Author Topic: DBRadioGroup question  (Read 4775 times)

xinyiman

  • Hero Member
  • *****
  • Posts: 2258
    • Lazarus and Free Pascal italian community
DBRadioGroup question
« on: June 17, 2011, 10:04:50 am »
Hello guys, I was wondering how you should use a DBRadioGroup, why not find any DBRadioBox. Does anyone know how to tell?
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

xinyiman

  • Hero Member
  • *****
  • Posts: 2258
    • Lazarus and Free Pascal italian community
Re: DBRadioGroup question
« Reply #1 on: June 17, 2011, 01:27:01 pm »
No one knows how to give me a hint?
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

DougNettleton

  • Jr. Member
  • **
  • Posts: 84
Re: DBRadioGroup question
« Reply #2 on: June 17, 2011, 03:20:38 pm »
Hi:

The on-line help has the following comment for DBRadioGroup:

"A group of mutually exclusive Radio Buttons; only one at a time may be checked and selected"

It's easy to use.  Just drop it on your form, set the datasource and datafield, fill in some "Values" and "Items", and a meaningful caption for the "Grouping"

"Values" are the underlying valid datafield values and "Items" are what display.

Use for any coded values that are not going change, e.g.

datafield: "sexcode"; Values: "F", "M"; Items: "Female", "Male"; Caption: "Sex"

Another field I might use it for "Marital Status"

HTH,

Doug

xinyiman

  • Hero Member
  • *****
  • Posts: 2258
    • Lazarus and Free Pascal italian community
Re: DBRadioGroup question
« Reply #3 on: June 17, 2011, 04:33:23 pm »
Thank you
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

 

TinyPortal © 2005-2018