General information
Category:
Coding, syntax & commands
Hi Nancy,
Thing what I'm investigating here is that all this work if you add a control
to a column in a form designer but work with a hicupp if you do it programmatically.
Evenif it works with setting sparse=.F. I found that using TRY...ENDTRY has minumum property changes effect f.ex.
oform1.grdgriddbf1.column2.Bound = .F.
oform1.grdgriddbf1.column2.ADDOBJECT("check1","checkbox")
With oform1.grdgriddbf1.column2.check1
.Controlsource = ""
.Top = 23
.Left = 13
.Height = 10
.Width = 10
.Caption = "Check1"
.Name = "Check1"
.Visible = .T.
ENDWITH
oform1.grdgriddbf1.column2.Bound = .T.
Generates an error
but next does't and work like control added in form designer
Try
oform1.grdgriddbf1.column2.ADDOBJECT("check1","checkbox")
With oform1.grdgriddbf1.column2.check1
.Controlsource = ""
.Top = 23
.Left = 13
.Height = 10
.Width = 10
.Caption = "Check1"
.Name = "Check1"
.Visible = .T.
ENDWITH
Catch
Endtry
AT
Previous
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