i able to fill one row of MSHFlexGrid form 6 textbox which i
assinged one by one. The problem is how to fill the next row coz
i want to fill about 100 row into my MSHFlexGrid form the same 6
textbox. Every time i add it will change the first row. I want
it to fill the next row. below is my coding:
Code:Private Sub cmdAdd_Click() Dim Iloop3 As Long Dim R Dim i As Integer With MSHF2 .AddItem "" .TextMatrix(.Row, 1) = txtMembership.Text .TextMatrix(.Row, 2) = txtNamemem.Text .TextMatrix(.Row, 3) = txtSandp.Text .TextMatrix(.Row, 4) = txtNetprice.Text .TextMatrix(.Row, 5) = txtStatus.Text .TextMatrix(.Row, 6) = txtPremium.Text End With For Iloop3 = 0 To MSHF2.Rows - 1 MSHF2.TextMatrix(R, 0) = R R = R + 1 Next End Sub




Reply With Quote