Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BUG:INDEX ON eval EOF()
Message
 
 
À
01/03/2005 08:58:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9
Database:
Visual FoxPro
Divers
Thread ID:
00991521
Message ID:
00991525
Vues:
14
Fabio,

Can you clarify what you're considering a bug in this case?

>Expected: If a RECORD exists, INDEX ON execute the check datatype phase within the table.
>
>Observed:INDEX ON can do the check datatype phase at EOF() record.
>
>
>CREATE CURSOR testIndex (ff i DEFAULT 3 check ff>0)
>APPEND BLANK
>APPEND BLANK
>* i'm sure that ff>0 and sure that a record exists
>SET DELETED OFF
>DIMENSION aHash[3]
>? RECNO()
>INDEX on aHash[ff] TAG ttf
>? RECNO()  && at end the record is the top, the not restriction exist for fix this issue
>GO BOTTOM
>SKIP
>INDEX on aHash[ff] TAG ttf
>
>
>
>current VFP rule is:
>- eval at current record
>- .....
>
>Correct VFP procedure:
>- if (dbstatus & DB_EOF)
>     _DBRewind(-1);
>- eval at current record
>
>Of course, if the Table is Empty, the evaluation is forced to EOF().
>
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform