1
Vote

Not storing new record, in already populated dbf file.

description

Does save any new records after database has already been populate, only works when creating new database.
FBPlayerInfo pi = m_tblplayerinfo.NewRecord();
FBPlayerAttributes pa = m_tblplayerattributes.NewRecord();

pi.ID = (int)pi.RecordNo + 1;
pa.ID = (int)pa.RecordNo + 1;
pa.FBPlayInfID = (int)pi.RecordNo + 1;

pi.Initialize();
pa.Initialize();

m_selectedplayerinfo.SaveChanges();

m_selectedplayerattributes.SaveChanges();

comments

WaqasRasheed14 wrote Feb 11, 2014 at 8:42 AM

Hi,
Just close the database stream, it will reflect changes immediately i.e. m_tblplayerinfo.Close() and m_tblplayerattributes.Close()