Ver Mensaje Individual
  #2  
Antiguo 17-04-2007
Avatar de Neftali [Germán.Estévez]
Neftali [Germán.Estévez] Neftali [Germán.Estévez] is offline
[becario]
 
Registrado: jul 2004
Ubicación: Barcelona - Espańa
Posts: 19.440
Reputación: 10
Neftali [Germán.Estévez] Es un diamante en brutoNeftali [Germán.Estévez] Es un diamante en brutoNeftali [Germán.Estévez] Es un diamante en bruto
Pasa los nombres de tabla a un TStrings y luego lo recorres y añades las que quieras al combo...

Código Delphi [-]
var
  TS:TStrings;
  i:Integer;
begin
  TS := TStringList.Create();
  ADOConnection.GetTableNames(TS, False{SystemTables});
  try
    // recorrido
    for i := 0 to (TS.Count - 1) do begin
      // Escoger las que quieras...      
      if (AnsiStrLComp(TS.Strings[i],'client', 6) = 0) then begin
        ComboBox1.Add(TS.Strings[i]);
      end;
    end;
  finally
    TS.Free;
  end;

Te lo he puesto de memoria, así que tal vez he cometido algun error de sintaxis, pero debería funcionar...
__________________
Germán Estévez => Web/Blog
Guía de estilo, Guía alternativa
Utiliza TAG's en tus mensajes.
Contactar con el Clubdelphi

P.D: Más tiempo dedicado a la pregunta=Mejores respuestas.
Responder Con Cita