|
|
#1 |
|
Участник
|
tmp fields
Privet!
Estj, naprimer, table EmplTable. Hochu ispoljzovat jevo strukturu in polji, kak tmp table EmplTable.setTpm(); No kak ubrakj fields katoriej nenuzhni (naprimer, kakie polji, katorie mandatory, nu mne ix nenuzhnji) i tak zhe podlazhit novix fields ??? Patom ja store etot tabljicu v konteinere, a konteiner v tabljice. X++: container tmpCon; container conTable //store tmp table in container tmpCon = buf2con(courseTable); conTable = conins(conTable,conlen(conTable)+1,tmpCon); Table.containerField = conTable; X++: tmpTable.setTmp()
con = Table.containerField;
//store data in tmpTable from container
for (i=1;i<=conlen(con);i++)
{
con2buf(conpeek(con,i),tmpTable);
tmpTable.insert();
}Последний раз редактировалось Kent; 30.09.2009 в 16:24. |
|
|
|
|
|