Z
zhaofengtc
Unregistered / Unconfirmed
GUEST, unregistred user!
TTable *Table1=new TTable(Application);
Table1->DatabaseName="C://";
Table1->TableName="mb.db";
Table1->Active=true;
Table1->Open();
int i,j,n;
Application->ProcessMessages();
while(!Table1->Eof)
{
for(j=1;j<Table1->FieldCount;j++)
{
i=1;
WideString("F6Book1->TextRC[i,j]")=Table1->Fields->Fields[j]->FieldName;
if(j<22)
F6Book1->TextRC[i,j]=Table1->Fields[j];
if (j>23)
F6Book1->TextRC[i,j-2]=Table1->Fields[j];
i=i+1;
}
Table1->Next();
}
F6Book1->SaveFileDlg(WideString("bao").c_bstr(),WideString("c://").c_bstr(),11);
F6Book1->Write(WideString("c://").c_bstr(),11);
Table1->Close();
Table1->DatabaseName="C://";
Table1->TableName="mb.db";
Table1->Active=true;
Table1->Open();
int i,j,n;
Application->ProcessMessages();
while(!Table1->Eof)
{
for(j=1;j<Table1->FieldCount;j++)
{
i=1;
WideString("F6Book1->TextRC[i,j]")=Table1->Fields->Fields[j]->FieldName;
if(j<22)
F6Book1->TextRC[i,j]=Table1->Fields[j];
if (j>23)
F6Book1->TextRC[i,j-2]=Table1->Fields[j];
i=i+1;
}
Table1->Next();
}
F6Book1->SaveFileDlg(WideString("bao").c_bstr(),WideString("c://").c_bstr(),11);
F6Book1->Write(WideString("c://").c_bstr(),11);
Table1->Close();