Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid checkbox question
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Grid checkbox question
Miscellaneous
Thread ID:
00395965
Message ID:
00395965
Views:
41
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?
Al Williams

Anola MB, CANADA
Next
Reply
Map
View

Click here to load this message in the networking platform