ultimatepp/uppdev/readdbf/readdbf.cpp
cxl 4a1c627474 Adding uppdev....
git-svn-id: svn://ultimatepp.org/upp/trunk@328 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2008-08-15 08:36:24 +00:00

27 lines
452 B
C++

#include <Core/Core.h>
#include <TCore/dbf.h>
using namespace Upp;
CONSOLE_APP_MAIN
{ int i;
int NFields;
DbfStream dbf;
if(!dbf.Open(GetDataFile("club.dbf"), false) ) {
return;
}
// int NFields = dbf.GetFieldCount();
// DUMP(NFields);
/* while(dbf.Fetch()) {
String text;
// for (i=0; i<3; i++) {
text << dbf["CODE"] << dbf["CLUB"];
// }
text << "\n";
Cout() << text;
}
*/
dbf.Close();
}