Создание таблицы в Билдере6
Цитата:
Fm_Main->CurBase = Tab_objects->Fields->Fields[1]->AsString;
Fm_Main->Tab_obj->Active = false;
Fm_Main->Tab_obj->TableName = Fm_Main->CurBase;
Fm_Main->Tab_obj->FieldDefs->Clear();
Fm_Main->Tab_obj->FieldDefs->Add("ind", ftAutoInc,0,true);
Fm_Main->Tab_obj->FieldDefs->Add("ind_rash", ftInteger,0,true);
Fm_Main->Tab_obj->FieldDefs->Add("DTime", ftDateTime,0,true);
Fm_Main->Tab_obj->FieldDefs->Add("Val", ftFloat,0,true);
Fm_Main->Tab_obj->CreateTable();
Fm_Main->Tab_obj->Active = true;
Fm_Main->Tab_obj->Active = false;
Fm_Main->Tab_obj->TableName = Fm_Main->CurBase;
Fm_Main->Tab_obj->FieldDefs->Clear();
Fm_Main->Tab_obj->FieldDefs->Add("ind", ftAutoInc,0,true);
Fm_Main->Tab_obj->FieldDefs->Add("ind_rash", ftInteger,0,true);
Fm_Main->Tab_obj->FieldDefs->Add("DTime", ftDateTime,0,true);
Fm_Main->Tab_obj->FieldDefs->Add("Val", ftFloat,0,true);
Fm_Main->Tab_obj->CreateTable();
Fm_Main->Tab_obj->Active = true;
и еще поле ind создается не ftAutoInc, а integer. Все еще не разобрался ( помогите..