Pdox4.0 locate indexorder

Pdox4.0 locate indexorder

Post by Timo Talasm » Thu, 17 Jun 1993 23:50:15



I am having trouble with locate indexorder.
I am using
  LOCATE INDEXORDER NEXT PATTERN "a.."

When doing this command repeatedly in a script, sometimes
Paradox finds several of the fields with the data starting
with an 'a', sometimes it finds none. When Paradox thinks
that all the matching records have been found, it cycles
back to the first found record (but misses many records
that should have been found).

The actual number of records found this way seems to
depend on the table, so there must be some kind of,
should I say, pattern.

What am I doing wrong?

I have done a LOCATE INDEXORDER without the NEXT before
giving one with NEXT.

Timo

--
/--------------------------------------------------------------------------/

/ O Fortuna, velut luna, statu variabilis, semper crescis, aut decrescis ! /
/--------------------------------------------------------------------------/

 
 
 

Pdox4.0 locate indexorder

Post by Timo Talasm » Fri, 18 Jun 1993 00:22:59



Quote:>back to the first found record (but misses many records
>that should have been found).

>The actual number of records found this way seems to
>depend on the table, so there must be some kind of,
>should I say, pattern.

Repeated LOCATE INDEXORDER NEXT PATTERN "a.." stops on
the first uppercase 'A' it finds. After the first upper
case 'A' it cycles back to the first found record and
misses all the rest.

According to the manual, when using PATTERN case should
be ignored.

Seems to be a bug.

Timo

--
/--------------------------------------------------------------------------/

/ O Fortuna, velut luna, statu variabilis, semper crescis, aut decrescis ! /
/--------------------------------------------------------------------------/

 
 
 

1. bug in locate indexorder

Hi:

I think I have discovered a bug in "locate indexorder" command. Here is the
scenario:

1.  Create a table with primary index on a field called "partname"
    (In my case this was A20)

2.  View "table"
    moveto [partname]

3.  locate indexorder pattern "B.."

4.  paradox displays the record with "partname" starting with "B"

The bug manifests itself ONLY if the record located is the LAST record in
the table. If this is the case then:

5.  locate indexorder next pattern "B.."

This of course does not move the cursor from the last record BUT
"retval" is still set to TRUE.

I tried this from the interactive paradox (4.02) too and got the same
result.

The easy workaround is to first check if this is the last record before
doing the "locate indexorder next ..." in step 5.

                shailesh

2. Like query

3. Paradox LOCATE INDEXORDER, patterns and vallist

4. QuickReport Problem

5. once again: LOCATE INDEXORDER

6. configure --with-pam

7. Paradox4.0: LOCATE INDEXORDER???

8. Search?

9. Pdox4.5 Locating records

10. REPORT CAPABILITIES OF PDOX4.0 VS. PDOX4.5

11. Report Capabilities of PDOX4.0 vs. PDOX4.5

12. HELP: TQuery.Locate vs TTable.Locate ?

13. locate & Locate next