Paradox Community

Items in pnews.paradox-programming

Subject:Tcursor SetRange() and SetGenFilter()
Date:Wed, 16 Sep 2020 14:36:14 -0800
From:Peter <>
Upon opening a form I open a tcursor and do a setrange. In a custom 
method I need to work only on the records that are 'live', in the table 
I have a logical field with values False/True.

The setrange looks like this:
tcuCur.setRange(EmpID, Wdate, Wdate) ;//empid and wdate are fields on 
the form

In a custom method I set a filter:
dynFilt["Cull"] = TRUE         ;//dynfilt is dynamic array

When I run the method it chokes on the setGenFilter, it complains that 
it cannot "set order/range" and the next part says "Date Separator missing".

What I am getting from this is that when setting the filter it is 
including the fields EmpID and Wdate. I thought that a tcursor could do 
a filter on only an existing range of records.

Can anyone shed some light on this? Thanks.


Copyright © 2004