Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread Radio Button error
Fri, Jan 6 2017 8:26 AMPermanent Link

Trinione

In a Group Panel I have 2 radio buttons () Yes () No.

()No ValueSelected = False and that works fine. However, () Yes ValueSelected = True and the following error occurs when the radio button is clicked:

Uncaught error: 'Invalid literal boolean '0' specified.'

Note, it works for the () No. And, I know a checkbox can do a Y/N, but this is a required field and is being changed from a checkbox as users are required to explicitly state a Yes or a No hence the radio buttons.
Fri, Jan 6 2017 8:54 AMPermanent Link

Trinione

Using Get/Set Text in the dataset did the trick.
Mon, Jan 9 2017 3:55 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

<< ()No ValueSelected = False and that works fine. However, () Yes ValueSelected = True and the following error occurs when the radio button is clicked:

Uncaught error: 'Invalid literal boolean '0' specified.' >>

Are you trying to use radio buttons with a Boolean dataset field ?  The radio buttons really aren't intended to be used that way.  I'll see what I can do, but you should probably use a TCheckBox instead.

Tim Young
Elevate Software
www.elevatesoft.com
Image