>I have a check box with a logical field as the control source,(family.pri1). The first time you click it, there is no visible change. The second time you click it, it will toggle the field.
>
>I want a single click to change the value of the control source. I have been able to make it work by removing the control source and adding the following code
>
>INIT:
> this.value=family.pri
>
>WHEN:
>
> this.value=family.pri
>
>VALID:
> replace family.pri1 with !family.pri1
> this.value=family.pri1
>
>This does not seem like the right way to do it. Any ideas why just using the control source is not working with a single click?
Ray,
In addition to Mark's response, see, if this info applies to your situation: Forum: Visual FoxPro Category: Troubleshooting Title: Re: Checkbox is not working properly Thread #
493100 Message #
493133
If it's not broken, fix it until it is.
My Blog