Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid checkbox question
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00395965
Message ID:
00395969
Vues:
10
Either:
I guess you don't have a controlsource in the column which contains the checkbox. If you don't specify a controlsource, VFP will automatically assign the first field of your rowsource file in which, the field type is neither logical, numeric, nor integer.

>>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."
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform