Posts from Programming
Borland C++
Garbage.
From a practical point of view, Visual Studio is much more appealing.
И пока в кармане пачка милкиуэйев - значит все не так уж плохо на сегодняшний день
By the way, I don't remember when or on which resource, but I read how one reverse engineer restored a pirated(!) campaign in Heroes 3 when there was a bug when loading resources and the game crashed. He fixed it and played it)
And there was also a dump of Heroes 3) and a bit of analysis of the mechanics.
Ment, here you go) that's why it's easier in assembly.
int i;
TTable *Table1=new TTable(this);
TTable *Table2=new TTable(this);
if(Form1->OpenDialog1->Execute())
{
Table1->TableName=OpenDialog1->FileName;
Table1->Active=true;
Table2->TableName="temp.dbf";
Table2->TableType=ttFoxPro;
for(i=0; iFieldCount; i++)
{
Table2->FieldDefs->Add(Table1->FieldDefs->Items->Name, Table1->FieldDefs->Items->DataType, Table1->FieldDefs->Items->Size, Table1->FieldDefs->Items->Required);
if(Table1->FieldDefs->Items->DataType==6)
{
Table2->FieldDefs->Items->Precision=8; // How I'm trying to set the number of digits after the decimal point in the dbf file field, but it doesn't work at all
}
}
Table2->CreateTable();
Table2->Active=true;
Table1->First();
Table2->First();
while(!Table1->Eof)
{
Table2->Edit();
Table2->Insert();
for(i=0; iFieldCount; i++)
{
Table2->Fields->FieldByName(Table1->FieldDefs->Items->Name)->AsString=Table1->Fields->FieldByName(Table1->FieldDefs->Items->Name)->AsString;
}
Table2->Post();
Table1->Next();
}
Table1->Active=false;
Table2->Active=false;
}
P.S. By the way, I just invented a floating-point number; I'm a genius, to hell with all of you!
Знание некоторых закономерностей освобождает от изучения многих фактов.
Мечты сбываются рано или поздно, так или иначе.
Yes, this file will be used later to load into another program, so what you suggested won't work. If I were doing it for myself, there wouldn't even be a question.
Okay, here's another version... Everyone uses Delphi 7, maybe I should try that? Version 6 is really old. Yes, version 7 is also old, but it had very powerful tools for working with databases, I definitely remember that. Maybe it has upgraded properties.
Also, something else. I think it's the database specification itself, but there are several versions... Maybe I should install a module of a newer version? They must have fixed it there. I think so.
I can't suggest anything else; I have version 10-lite installed, and it doesn't even have databases. Although I don't need them.
Is there really no way to fix this? It's just one line...
Besides, I don't know any other way to achieve greater accuracy than I've already tried.