Fórum erro dbexpress #389407
26/10/2010
0
Porém quando uso a função GetTableNames, retorna o erro "DBEXPRESS ERROR: OPERATION NOT SUPPORTED"
O comando que uso é o seguinte :
DM.Conexao.GetTableNames(Tabelas, False);
Alguma Sugestão?
Luigi Maestrelli
Curtir tópico
+ 0Posts
26/10/2010
Wilson Junior
var
stlTabela: TStringList;
begin
stlTabela := TStringList.Create;
DM.Conexao.GetTableNames( stlTabela );
{ Utilize o stlTabela para saber o nome das tabelas }
end;Espero ter colaborado.
Gostei + 0
26/10/2010
Luigi Maestrelli
procedure TFConSQL.Adiciona;
var
i : integer;
Tabelas : tstringlist
begin
if uppercase(ComboBox1.Text) = Uppercase(alias) then
exit;
alias := ComboBox1.Text;
TreeView1.items.Clear;
tabelas := tstringlist.Create;
FMenu.Conexao.GetTableNames(Tabelas, False);
FProgresso.Max := tabelas.count;
Fprogresso.Show;
FProgresso.Refresh;
TreeView1.Items.Add(nil,'Tabelas');
for i := 0 to tabelas.Count - 1 do
begin
TreeView1.Items.AddChild(TreeView1.Items[0],Tabelas[I]);
FProgresso.Gauge1.Progress := FProgresso.Gauge1.Progress + 1;
end;
fprogresso.close;
end;
Gostei + 0
26/10/2010
Wilson Junior
Gostei + 0
26/10/2010
Luigi Maestrelli
Gostei + 0
26/10/2010
Wilson Junior
Espero ter colaborado.
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)