Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Integer primary key
Message
De
03/12/1997 12:28:34
Matt Mc Donnell
Mc Donnell Software Consulting
Boston, Massachusetts, États-Unis
 
 
À
03/12/1997 12:12:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00063579
Message ID:
00063583
Vues:
43
>I'm using an integer primary key and wonder how I can get the child data in a grid to be sorted in an order other than the foreign key used to relate to the parent.
>many thanks
>Jeff
The only way I can think of is to convert your indices to alphas and concatenate the necessary indices with your foreign key:
USE myParent
* - fKey1 = STR(key,10) + cfield1, fKey2 = STR(key,10) + STR(nfield2,10), etc         
USE myChild ORDER fKey1 IN 0
SET RELA TO STR(key,10) INTO myChild   && child ordered by character field
SET RELA TO
SET ORDER TO fKey2 IN myChild
SET RELA TO STR(key,10) INTO myChild   && child ordered by numeric field
HTH
Matt McDonnell
...building a better mousetrap with moldy cheese...
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform