My problem occurs when I load a check box control array at run time.
The following code works if I preload the check box array at design time.
Included on the form are three check boxes which are a control array (chkbox(0), chkbox(1) and chkbox(2).
grdsales is a MSFLEXGRID control.
grdSales.Col = NewSchedOrderCol
For i = 1 To 2
grdSales.Row = i
chkBox(i).Move grdSales.Left +grdSales.CellLeft, _
grdSales.Top + grdSales.CellTop, _
grdSales.CellWidth - 8, _
grdSales.CellHeight - 8
chkBox(i).Visible = True
Next i
However if I were to include only chkbox(0) at design time and try to load the chkbox array one for each row on the grid it displays nothing.
grdSales.Col = NewSchedOrderCol
For i = 1 To NumFields Step 1
grdSales.Row = i
Load chkBox(i)
chkBox(i).Move grdSales.Left + grdSales.CellLeft, _
grdSales.Top + grdSales.CellTop, _
grdSales.CellWidth - 8, _
grdSales.CellHeight - 8
chkBox(i).Visible = True
Next i
TIA for any help on this!
John
The following code works if I preload the check box array at design time.
Included on the form are three check boxes which are a control array (chkbox(0), chkbox(1) and chkbox(2).
grdsales is a MSFLEXGRID control.
grdSales.Col = NewSchedOrderCol
For i = 1 To 2
grdSales.Row = i
chkBox(i).Move grdSales.Left +grdSales.CellLeft, _
grdSales.Top + grdSales.CellTop, _
grdSales.CellWidth - 8, _
grdSales.CellHeight - 8
chkBox(i).Visible = True
Next i
However if I were to include only chkbox(0) at design time and try to load the chkbox array one for each row on the grid it displays nothing.
grdSales.Col = NewSchedOrderCol
For i = 1 To NumFields Step 1
grdSales.Row = i
Load chkBox(i)
chkBox(i).Move grdSales.Left + grdSales.CellLeft, _
grdSales.Top + grdSales.CellTop, _
grdSales.CellWidth - 8, _
grdSales.CellHeight - 8
chkBox(i).Visible = True
Next i
TIA for any help on this!
John