Maheshkshirsagar
Programmer
Hi..
I have 2 FlexGrids on a form namely msflexgrid1 and msflexgrid2.
I have a procedure which requires msflexgrid as parameter
which is given below
Public Sub FlexClick(abc As MSFlexGrid)
Text1.Visible = True
Text1.Height = 255
Text1.Left = abc.CellLeft + 150
Text1.Top = abc.CellTop + 850
Text1.Height = abc.CellHeight
Text1.Width = abc.CellWidth
Text1.Height = 255
Text1.SetFocus
End Sub
I am calling this procedure on Click event of both the grids.
like
Private Sub MSFlexGrid1_Click()
FlexClick MSFlexGrid1
End Sub
Private Sub MSFlexGrid2_Click()
FlexClick MSFlexGrid2
End Sub
But...It doesnt works..
After debuggimg i find that variable 'abc' in procedure is no getting value of either 'msflexgrid1' or 'msflexgrid2'.
Whats the problem??
Thanks in advance
Mahesh Kshirsagar
I have 2 FlexGrids on a form namely msflexgrid1 and msflexgrid2.
I have a procedure which requires msflexgrid as parameter
which is given below
Public Sub FlexClick(abc As MSFlexGrid)
Text1.Visible = True
Text1.Height = 255
Text1.Left = abc.CellLeft + 150
Text1.Top = abc.CellTop + 850
Text1.Height = abc.CellHeight
Text1.Width = abc.CellWidth
Text1.Height = 255
Text1.SetFocus
End Sub
I am calling this procedure on Click event of both the grids.
like
Private Sub MSFlexGrid1_Click()
FlexClick MSFlexGrid1
End Sub
Private Sub MSFlexGrid2_Click()
FlexClick MSFlexGrid2
End Sub
But...It doesnt works..
After debuggimg i find that variable 'abc' in procedure is no getting value of either 'msflexgrid1' or 'msflexgrid2'.
Whats the problem??
Thanks in advance
Mahesh Kshirsagar