Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using TTOC in an index
Message
De
19/05/2008 01:33:38
Jill Derickson
Software Specialties
Saipan, CNMI
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Using TTOC in an index
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Database:
Visual FoxPro
Divers
Thread ID:
01318068
Message ID:
01318068
Vues:
65
Hi,

I just upgraded a system to VFP 9 SP1. The Debtors.DBF table includes the following fields:

clientID C(6)
debtor C(50)
closed D
dDeleted DateTime

And had an index, ID: clientID + debtor + DTOS( closed ) + TTOC( dDeleted )

This worked fine for years (in VFP 8).

As soon as a user attempted to make a change to the closed date, the error:

"Error building key for index "C:\....debtors.cdx" tag "ID"."

I could not reproduce the error in development mode.

After investigating (reindexing, etc.), I changed the index to:

clientID + debtor + DTOS( closed ) + TTOC( dDeleted, 1 )

And this fixed the problem.

Guess something changed in VFP 9 that I wasn't aware of.

No question, just wanted to post this in case someone else has the problem and/or anyone has any input.

J
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform