Working w/ Check Box values

sdillon1

Member
How do you toggle a check box with ER?

How do you test a check box with an IF statement?

If I test for or assign "Y" or "N" I get ER validation errors.

There should be a Sys function to set check box control.
 
You need to associate the check boxes with a data dictionary item. Select all of the check boxes concerned. From the main menu select edit, select associate, select Data Dictionary item. If only using "Y" or "N" then simply select a character DD item such as EV01 in the DD dialog. Drag the DD item from the dialog and drop on the selected Check boxes. Change the Check box text description and value. Now you are ready to reference check boxes like any other variable. Since all the check boxes point to the same DD value you only need to reference one of the check boxes to determine or set the current value of the check boxes.

Scott Beebe
 
When you create the check box on a form, associate it w/a data dictionary item (ev01).
Rename the check box control to be meaningful.
Test against the renamed control.

To toggle, change the value of that control (0/1, Y/N).

Gene
 
Did you associate a database item or dd item with the checkbox? (Edit/Associate/....)

Did you set the values for checked/unchecked in the checkbox properties? (If not they default to 1 and 0)

Barry
 
the values of the check box can be anything, but to set it to be checked, just use the "press button" sys function on the form.
 
Back
Top