Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem using date in index
Message
De
20/03/2002 14:43:05
Rex Mahel
Realm Software, Llc
Ohio, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Problem using date in index
Divers
Thread ID:
00635170
Message ID:
00635170
Vues:
43
All,

Has anyone run into this one:

VFP 6.0 SP5

I have a table with an id (Id) and a date (dDate). I try to order the date by id and by date descending. I use the following index:

Id + str({^2100-12-31} - dDate,5,0)

I get an "Index does not match table" message. When I look at the index expression I see:

"id+STR({12/31/2100}-ddate,5,0)"

It seems VFP tables do not understand the STRICT date format.

BTW, Id + STR(CTOD("12/31/2100")-ddate,5,0) works fine.

Thanks

Rex
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform