DataSets

hayto

Member
Joined
Aug 31, 2004
Messages
13
Programming Experience
Beginner
hi there,
Can anyone help me about meaning and importance of clearing dataset tables??

ex:
daCargo.Fill(dsGeneral, "Cargo")

dsGeneral.Tables("Cargo").Clear() ???????????

daCargo.Fill(dsGeneral, "Cargo")

 

mzim

Well-known member
Joined
Jun 3, 2004
Messages
187
Location
Other side of the rock
Programming Experience
1-3
before you fill your datatable..you must clean it first..
PHP:
    dsGeneral.Tables("Cargo").Clear() 
 daCargo.Fill(dsGeneral, "Cargo")
it just saying...wash your hands before you eat...
 

liam

Member
Joined
Jun 8, 2004
Messages
23
Programming Experience
Beginner
cleaning the dataset will ensure that no duplications and overwriting of data will occur

and yes it's just like washing off your hands.. heheheh...
 
Top Bottom