Dear coleagues:

 

I have used the function Locate many times, but now I have a question:

 

I have this part of a program:

 

        DBEcodNeg.Text:=anadecero(DBEcodNeg.Text,2);

        fdm.tNegocios.Locate('codCliente',DBEcodNeg.Text,[]);

        fdm.ti_medicos2.Edit;

 
fdm.ti_medicos2.FieldByName('codCliente').AsString:=fdm.tNegocios.FieldByNam
e('codCliente').AsString;

 

if the operator has a mistake and write in the DBEdit control a number not
included previously in the table tNegocios the function Locate drawback the
last record of the table.

 

How can I know if the number asked is in the Table?

 

Thanks in advance,

 

Ing. Héctor Fiandor

[email protected]

 

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to