Default value for Radiogroup

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
serge_girard
Posts: 3420
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Default value for Radiogroup

Post by serge_girard »

Hello,

Is it possible to have a Radiogroup without initial value setting?

Example:
When I have an existing record I known gender: MALE or FEMALE. Radiogroup value will set to 1 if MALE and to 2 if FEMALE.

Now when I have a NEW record I want my Radiogroup set to NILL or 0 (gender unknown) and so my end-user will be forced to make a
choice M/F. This I have to program myself.

I now have a Radiogroup with 3 values M (1) /F (2) / X(3). Default value 3 (X) for NEW but end-users don't like gender X....

Serge
There's nothing you can do that can't be done...
User avatar
Claudio Ricardo
Posts: 367
Joined: Tue Oct 27, 2020 3:38 am
DBs Used: DBF, MySQL, MariaDB
Location: Bs. As. - Argentina

Re: Default value for Radiogroup

Post by Claudio Ricardo »

Hi... If you want it to start without any selected put Value Nil when defined control
and then you handle it with SetProperty...
Corrige al sabio y lo harás más sabio, Corrige al necio y lo harás tu enemigo.
WhatsApp / Telegram: +54 911-63016162
User avatar
serge_girard
Posts: 3420
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: Default value for Radiogroup

Post by serge_girard »

Great, that's what I was looking for!

Serge
There's nothing you can do that can't be done...
Post Reply