Aggiunta una zero del record nella settab

git-svn-id: svn://10.65.10.50/trunk@297 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
villa 1994-09-28 15:52:37 +00:00
parent 6d6524fea4
commit bf13cdda18

View File

@ -1221,7 +1221,7 @@ TRectype::TRectype(int logicnum)
_rec = new char [ _length ]; _rec = new char [ _length ];
_i = openf[_logicnum - 1]; _i = openf[_logicnum - 1];
*_tab = '\0'; *_tab = '\0';
setempty(TRUE); setempty(TRUE);
} }
TRectype::TRectype(const TBaseisamfile* i) TRectype::TRectype(const TBaseisamfile* i)
@ -1243,7 +1243,7 @@ TRectype::TRectype(const TBaseisamfile* i)
*_tab = '\0'; *_tab = '\0';
_rec = new char [ _length ]; _rec = new char [ _length ];
_i = i->filehnd(); _i = i->filehnd();
setempty(TRUE); setempty(TRUE);
} }
@ -1280,7 +1280,8 @@ void TRectype::settab(const char *tab)
} }
strcpy(_tab, tab); strcpy(_tab, tab);
if (*_tab != '\0') if (*_tab != '\0')
_cod = new TRecfield(*this, "COD"); _cod = new TRecfield(*this, "COD");
zero();
} }
TObject* TRectype::dup() const TObject* TRectype::dup() const