Fórum Tabelas do banco em um combobox #282597
21/05/2005
0
como mostrar as tabelas do banco em um combo? e em outro combo os campos de uma determinada tabela;
Ntrafa
Curtir tópico
+ 0Posts
22/05/2005
Ntrafa
Gostei + 0
22/05/2005
Marco Salles
Sera que seria muito pedir , para voce mostrar como encontrou a solução :lol: :lol: :lol:
Gostei + 0
22/05/2005
Otto
Var QryTabelas: TQuery; begin QryTabelas := TQuery.Create(Self); try QryTabelas.DataBasename := ´DIBM´; with QryTabelas do begin if Active Then Close; SQL.Text := ´ SELECT RDB$RELATION_NAME FROM RDB$RELATIONS ´+ ´ WHERE (RDB$SYSTEM_FLAG = 0 or RDB$SYSTEM_FLAG is null) ´+ ´ AND RDB$VIEW_BLR IS NULL ´; Open; First; while not Eof do begin ListBoxTabelas.Items.Add(FieldByName(´RDB$RELATION_NAME´).AsString); Next; end; //while end; //with finally FreeAndNil(QryTabelas); end; //try;
usei um TQUery usando o banco firebird.. ;)
Gostei + 0
22/05/2005
Marco Salles
Se não consegui eu Posto Novamente
Mas desde ja eu Agradeço
Obrigado
Gostei + 0
23/05/2005
Steve_narancic
Database.GetTableNames(combobox.items);
Database.GetFieldNames(´Tabela´, combobox.items);
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)