Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Inserting Row in a List (collection)

Status
Not open for further replies.

arunglobal

Programmer
Sep 8, 2003
40
IN
Dim list As Collection

While count < list.Count
If DataGrid2.Item(count, 0) Then
tmpobjEmp = list.Item(cnt)
If tmpobjEmp.m_empid = DataGrid2.Item(count, 1) Then

tmpobjEmpins = New Employee
m_empid = 0
m_empname = &quot;&quot;
m_empsal = 0.0
m_isins = False
m_isupd = False

tmpobjEmpins.Empid = CInt(m_empid)
tmpobjEmpins.Empname = CStr(m_empname)
tmpobjEmpins.EmpSal = CDbl(m_empsal)
tmpobjEmpins.m_isins = CBool(m_isins)
tmpobjEmpins.m_isupd = CBool(m_isupd)
list.Add(tmpobjEmpins, Nothing, tmpobjEmp, Nothing) this is not working
Exit While
End If
End If
count = count + 1
cnt = cnt + 1
End While

i just want insert a row into collection

can any one help me.....
thanks in advance
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top