General information
Category:
Forms & Form designer
Title:
How do I create a checkbox in a grid column at runtime?
I'm working on an application written in VFP 5.0 and have a grid on a form which I create at runtime. I need to change the controlsource to checkbox instead of textbox (see code below)
THISFORM.grid1.ADDCOLUMN(2)
THISFORM.grid1.COLUMNS(2).NAME = 'colBox'
THISFORM.GRID1.colBox.WIDTH = 30
THISFORM.grid1.colBox.HEADER1.CAPTION = ''
THISFORM.grid1.colBox.HEADER1.ALIGNMENT = 2
THISFORM.grid1.colBox.currentcontrol = 'Check1'
My code errors out on the last line. What am I doing wrong?
Thanks,
Joe
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only