FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Temas de Hoy |
|
Herramientas | Buscar en Tema | Desplegado |
#1
|
||||
|
||||
Findkey en ADO !!!
Hola Foro !!!
Por favor, me gustaría saber si existe una función en el componente ADOTable que sea similar al Findkey del componente Table. De ser así cuál sería el procedimiento de usarla? Las gracias anticipadas, Víctor.- |
#2
|
||||
|
||||
De la propia ayuda de Delphi:
Cita:
__________________
Guía de Estilo de los Foros Cita:
|
#3
|
||||
|
||||
If ADOTable2.Seek(ADOTable1Codigo.Value, soFirstEQ) = True Then
ShowMessage('El cliente ya existe !!!') else ADOTable1.Post; Al ejecutar el código de arriba se produce el siguiente error: 'The operation requested by the application is not supported by the provider' |
#4
|
||||
|
||||
Hola, aunque un tanto mas lento, pero tampoco tanto, puedes utilizar el metodo Locate.
P.e. DM.ADOQuery_Nombre.Locate('NombreCampoDondeBusca',VariableConValorABuscar,[loCaseInsensitive])) Suerte
__________________
El meu país és tan petit, que des de dalt d'un campanar es pot veure el campanar veí. |
|
|
|