|
|
От: |
IgorKr
|
|
| Дата: | 16.12.13 14:22 | ||
| Оценка: | |||
record *r=new record();
int k=1;
while(k<StringGrid1->RowCount)
{
memcpy(r->n,StringGrid1->Cells[0][k].w_str(),sizeof(r->n));
memcpy(r->name,StringGrid1->Cells[1][k].w_str(),sizeof(r->name));
memcpy(r->s1,StringGrid1->Cells[2][k].w_str(),sizeof(r->s1));
memcpy(r->s2,StringGrid1->Cells[3][k].w_str(),sizeof(r->s2));
k++;
...code...
}