Patch level : 10.0 nopatch
Files correlati : pd6342.exe Ricompilazione Demo : [ ] Commento Habilita ripartizione ricorsiva step 2 git-svn-id: svn://10.65.10.50/branches/R_10_00@20927 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
41b1848ec6
commit
cc982cfdf9
@ -277,11 +277,12 @@ TRecnotype TCSV_recordset::new_rec(const char* rec)
|
|||||||
return n;
|
return n;
|
||||||
}
|
}
|
||||||
|
|
||||||
void TCSV_recordset::create_columns(int cols)
|
void TCSV_recordset::create_column(const char * name)
|
||||||
{
|
{
|
||||||
_trc.destroy();
|
|
||||||
for (int i = 0; i < cols; i++)
|
TRecordset_column_info * info = new TRecordset_column_info;
|
||||||
_trc.add(new TRecordset_column_info);
|
info->_name = name;
|
||||||
|
_trc.add(info);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool TCSV_recordset::load_file(const TFilename& n)
|
bool TCSV_recordset::load_file(const TFilename& n)
|
||||||
|
@ -78,7 +78,8 @@ public:
|
|||||||
virtual const TVariant& get(unsigned int column) const;
|
virtual const TVariant& get(unsigned int column) const;
|
||||||
virtual TRecnotype new_rec(const char* buf = NULL);
|
virtual TRecnotype new_rec(const char* buf = NULL);
|
||||||
virtual bool set(unsigned int fld, const TVariant& var);
|
virtual bool set(unsigned int fld, const TVariant& var);
|
||||||
virtual void create_columns(int cols);
|
virtual void destroy_column(const int ncol = -1, bool pack = true) { _trc.destroy(ncol, pack); }
|
||||||
|
virtual void create_column(const char * name);
|
||||||
virtual bool load_file(const TFilename& n);
|
virtual bool load_file(const TFilename& n);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user