Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Clone a cursor and its SET KEY.
Message
De
30/08/2003 12:24:38
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Clone a cursor and its SET KEY.
Divers
Thread ID:
00824799
Message ID:
00824799
Vues:
45
Hi,

i try to write a generic clone function for a workarea.

For ORDER it is ok
For FILTER it need a slow macro, but i can
For SET KEY problem occurs.

If expression index is logical,date,datetime and character,
SET("KEY") return a incomplete string.
This can to be ambiguous.

Example:
CREATE CURSOR MyTest ( fDate D DEFAULT DATE() UNIQUE)
APPEND BLANK
SET ORDER TO 1
SET KEY TO DATE()
? SET("KEY")         && i aspect {99-99-9999},{99-99-9999}

CREATE CURSOR MyTest ( fDate C(10) default DTOC(DATE()) UNIQUE)
APPEND BLANK
SET ORDER TO 1
SET KEY TO DTOC(DATE())
? SET("KEY")         && i aspect '99-99-9999','99-99-9999'
My aspect result is direct useful for EVALUATE().

EXAMPLE:
m.Key1=EVAL(SET("KEY",1))

Why SET("KEY") command is incomplete ?

Fabio
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform