Subject Re: [IBO] Clone a Dataset?
Author Harald Klomann
Hallo GK

> Now I want to prevent user from entering duplicate records.
What about using a unique index to prevent users from adding duplicate values ?

HK



GK schrieb:
>
> Hello,
> There is a grid which is bound to a TIBO Dataset.
> The user can add rows and enter data.
> This is working fine.
>
> Now I want to prevent user from entering duplicate records.
> So as soon as the user enters something in the first column and moves to second column I want to iterate through the dataset to check for duplicate.
>
> My first attempt to do this is to somehow make a deepcopy or clone of this dataset so that I can iterate through it for checking.
>
> First is the right way or is there some easier way
> Second how do I make a deepcopy/clone of the dataset
>
> TIA
> GK
>
>
> ___________________________________________________________________________
> IB Objects - direct, complete, custom connectivity to Firebird or InterBase
> without the need for BDE, ODBC or any other layer.
> ___________________________________________________________________________
> http://www.ibobjects.com - your IBO community resource for Tech Info papers,
> keyword-searchable FAQ, community code contributions and more !
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/