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:
00617165
Vues:
21
Robert,

I solved the problem. I went into the properties for the column object for the last column of the grid and set the ControlSource for the checkbox in the column object. The whole problem I had was that I incorrectly had set the ControlSource for the checkbox in the checkbox object itself when I should have left that ControlSource on (None) or blank. I had the field in the table defined as Type = Logical, Length = 1. You also have to set Sparse property to .F. in order to get checkboxes in every row of the grid. I did these settings in the property window, not programmatically. I also used M.FIELDNAMES for my ControlSources even though I was advised not to and this seems to work without malfunction. I did SCATTER FIELDS fieldname1 fieldname2 fieldname3 MEMVAR MEMO after I SELECT MyTable and that's all I had to do to populate the grid with all the records in my table. I assume you know about CurrentControl property being set to chkBox name in the column object properties too. I left the Value property of the checkbox object at 0 default, but Logical type in the table. This too causes no problem. The result value for the checkbox is saved as T or F in the table when I check or uncheck the checkbox. Hope this helps.

Good luck!
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
Répondre
Fil
Voir

Click here to load this message in the networking platform