Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid checkbox question
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00395965
Message ID:
00395968
Views:
8
I guess you don't have a controlsource in the column. If you don't specify a column, VFP will automatically assign the first field of your rowsource.

>Hi,
>
>I have a grid on my form that contains a checkbox. There is code in the click() event of the checkbox that changes/updates other controls on the form.
>
>I would like the users to be able to be able to click any of the other columns in the grid and have the code fire to update the other controls (as opposed to having to actually click right in the checkbox). I created a method called 'change_gl' that contains the following code:
>
>
>*method change_gl
>*called from the click event of other grid columns
>
>
>if thisform.grid1.column5.check1.value = 0 && get error 107 here
> thisform.grid1.column5.check1.value = 1
>else
> thisform.grid1.column5.check1.value = 0
>endif
>
>thisform.grid1.column5.check1.click()
>
>** end of method change_gl
>
>I thought that the checkbox control accepted values 1 and 0 (according to Help). Yet when I run this code I get an error - Operator/operand type mismatch (Error 107). Any ideas as to what I'm doing wrong?
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net

CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform