Information générale
Catégorie:
Codage, syntaxe et commandes
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
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement