Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checkbox in grid causing error when clicked
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00615762
Message ID:
00615922
Vues:
21
FIXED!!!

I had multiple problems with my grid column that contained the checkbox.

First, I had the ControlSource for that last column set as (None). I had set the ControlSource in the Checkbox itself in error. I should have set the ControlSource for the column, not the control.

Second, I had the ControlSource as m.fieldname which caused the Checkbox not to save the value after checking the box. Since the grid column has no property for Click Event I could not do GATHER FIELD fieldname MEMVAR MEMO in the Click Event as I normally do in a checkbox. I removed the - m. - from the ControlSource and just had the fieldname and then the checkboxes saved.

Thanks again for pitching in. You gave me some great ideas. I don't think I will ever forget this solution. I found the answer on Pgs. 69-71 of the MS Visual FoxPro 6.0 Programmer's Guide by studying the coding example for a control in a grid. There's more on Pgs. 299-306 which is where I was looking yesterday, but I should have been looking at the other pages too.

Take care. Time to move on.
Steve Kramer
Kramer & Kramer Design
"Home of Go Cartoons"
Web Site: www.stephenkramer.com
Would you believe Far Side Lite?
More than 270 original cartoons.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform