![]() |
![]() |
| Paypal | FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
|||||||
| Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Buscar | Temas de Hoy | Marcar Foros Como Leídos |
![]() |
|
|
Herramientas | Buscar en Tema | Desplegado |
|
|
|
#1
|
|||
|
|||
|
Joder Mamaro,
Te debo una botella de vino, son de muy buena calidad por aqui jejeje. Por fin me desaponché, resulto lo querido, deseaba mostrartelo : Código:
if (Usuario <> '') AND (Clave <> '') Then
Begin
With DM do begin
Consulta.Close;
Consulta.SQL.Clear;
Consulta.SQL.Add('Select * FROM vendedores ');
Consulta.SQL.Add('WHERE ( numerovendedor = :PUSUARIO ) ');
Consulta.SQL.Add('AND ( passwordvendedor = :PCLAVE )');
Consulta.Parameters.ParamByName('PUSUARIO').Value := Usuario;
Consulta.Parameters.ParamByName('PCLAVE').Value := Clave;
Consulta.Open;
if (DSConsulta.DataSet.RecordCount = 1) Then
Begin
with DSConsulta.DataSet do begin
with BarraVendedor do begin
Panels[0].Text := 'Vendedor : ' + FieldByName('nombresvendedor').Value + ' ';
Panels[0].Text := Panels[0].Text + FieldByName('apellidosvendedor').Value;
Panels[1].Text := 'Numero : ' + IntToStr(FieldByName('numerovendedor').Value);
end;
end;
end;
end;
end
else
begin
Application.MessageBox('Debe ingresar un usuario y contraseña','Advertencia', MB_OK);
TxtNumeroVendedor.Text := '';
TxtPasswordVendedor.Text := '';
TxtNumeroVendedor.SetFocus;
end;
Gracias!!!!!!!!! ![]() |
|
#2
|
|||
|
|||
|
jaja .. bueno .. te diré que por estos lados lo que es bueno es el asado
.. cualquier cosa mi correo es [email protected].Saludos. PD: si me envías un correo ponle Amigo del Club Delphi, o algo así para que no lo elimine. |
![]() |
| Herramientas | Buscar en Tema |
| Desplegado | |
|
|
Temas Similares
|
||||
| Tema | Autor | Foro | Respuestas | Último mensaje |
| Delphi con Postgres | FlacoNet | PostgreSQL | 11 | 15-02-2010 16:37:46 |
| Cómo cerrar conexión? Delphi, Zeos y Postgres | mangels | PostgreSQL | 4 | 16-11-2007 16:00:59 |
| Postgres, Zeos y Delphi 7 | quali | PostgreSQL | 3 | 15-03-2007 22:41:39 |
| Delphi y Postgres | trex2000 | Conexión con bases de datos | 2 | 19-09-2006 16:23:38 |
| Conexion xon Postgres | nuquen | Linux | 6 | 25-06-2003 20:33:08 |
|