Paradox Community

Items in pnews.paradox-programming

Subject:Re: Tcursor opening
Date:17 Sep 2020 00:41:16 -0400
From:"Kevin Zawicki" <numberjack@wi.rr.com>
Newsgroups:pnews.paradox-programming


tested on a table.

If I open tcursor1 and set a filter and range and then attach  tcursor2 to
tcursor1, tcursor2 inherits tcursor1 range and filter.


Look at getGenFilter and getRange to test tcursor2.





Peter <peterspammenot@whiteknight.email> wrote:
>I need 3 tcursors to open on a single table, so all need to use the same

>range/filters. Here is how I am doing it:
>
>(removed error trapping for clarity)
>
>tcuCur.open(":TPOWER:Tcard")
>tcuCur.edit()
>tcuPre.attach(tcuCur)
>tcuPre.edit()
>tcuNex.attach(tcuCur)
>tcuNex.edit()
>
>Will tcuPre and tcuNex inherit all of the restrictions placed on tcuCur?
>
>I should have run my own tests before posting this. The result I got was

>that the attached tcursors do not inherit any restrictions of the first.
>
>So the question now is there a way to only have to set range/filter on 1

>tcursor and have the others inherit those restrictions?
>
>Thank you.
>
>
>Peter


Copyright © 2004 thedbcommunity.com