Discussion:
SetRange not doing what I expect
(too old to reply)
Dick Mathews
2008-06-14 04:04:00 UTC
Permalink
I am using D5, BDE5 and Paradox tables. I am trying to use SetRange to
apply a range to the tables. It works fine the first time, but each time
thereafter it does not clear the previous range. It includes the
previous value along with the new set. I have tried to Cancel and
Refresh the range, but that does not work either.

The help file tells me the following:

1 Puts the dataset into dsSetKey state.
2 Erases any previously specified starting range values and ending range
values.
3 Sets the start and end range values.
4 Applies the range to the dataset.

So if I am understanding this correctly, the new call to SetRange should
clear the previous values. What am I missing?

Dick Mathews
Steven Green
2008-06-14 13:09:32 UTC
Permalink
it's much easier to respond to your question, if we can see code examples..
otherwise, we're just guessing..

--
Steven Green - Myrtle Beach, South Carolina USA

Diamond Software Group
http://www.diamondsg.com/main.htm
Paradox Support & Sales

Diamond Sports Gems
http://www.diamondsg.com/gemsmain.htm
Sports Memorabilia and Trading Cards
Post by Dick Mathews
I am using D5, BDE5 and Paradox tables. I am trying to use SetRange to
apply a range to the tables. It works fine the first time, but each time
thereafter it does not clear the previous range. It includes the previous
value along with the new set. I have tried to Cancel and Refresh the range,
but that does not work either.
1 Puts the dataset into dsSetKey state.
2 Erases any previously specified starting range values and ending range
values.
3 Sets the start and end range values.
4 Applies the range to the dataset.
So if I am understanding this correctly, the new call to SetRange should
clear the previous values. What am I missing?
Dick Mathews
Dick Mathews
2008-06-14 22:35:22 UTC
Permalink
Opps. Dummy me. I failed to consider it was the list that was not clearing.

Sorry about that.
Thanks anyway,
Dick
Post by Steven Green
it's much easier to respond to your question, if we can see code examples..
otherwise, we're just guessing..
--
Steven Green - Myrtle Beach, South Carolina USA
Diamond Software Group
http://www.diamondsg.com/main.htm
Paradox Support & Sales
Diamond Sports Gems
http://www.diamondsg.com/gemsmain.htm
Sports Memorabilia and Trading Cards
Post by Dick Mathews
I am using D5, BDE5 and Paradox tables. I am trying to use SetRange to
apply a range to the tables. It works fine the first time, but each time
thereafter it does not clear the previous range. It includes the previous
value along with the new set. I have tried to Cancel and Refresh the range,
but that does not work either.
1 Puts the dataset into dsSetKey state.
2 Erases any previously specified starting range values and ending range
values.
3 Sets the start and end range values.
4 Applies the range to the dataset.
So if I am understanding this correctly, the new call to SetRange should
clear the previous values. What am I missing?
Dick Mathews
Loading...