[DUG] Validating uniqueness in a TDataset

Simon Garton simon at simongarton.co.nz
Thu Apr 24 11:38:05 NZST 2008


Quick question : how do I validate uniqueness in a TDataset ? I have some
data aware controls and a TDBNavigator; I can check other validation stuff
in the BeforePost event, but is there a sensible way of testing whether the
field ‘name’ (which has a unique constraint in the database) already exists
?

 

Many thanks,

 

Simon Garton

GIS/IT Consultant

email : simon at simongarton.co.nz 

mob : +64 21 227 4666

lat/long : 36º53'17" S, 174º46'50" E

www : http://www.simongarton.co.nz 

      http://www.treecapture.co.nz

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20080424/0c73ffa3/attachment-0001.html


More information about the Delphi mailing list