Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I create a checkbox in a grid column at runtime?
Message
From
30/04/2002 08:18:35
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
How do I create a checkbox in a grid column at runtime?
Miscellaneous
Thread ID:
00650796
Message ID:
00650796
Views:
47
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
Map
View

Click here to load this message in the networking platform