Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Ordering a Grid
Message
De
11/01/2000 13:18:03
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
11/01/2000 13:01:08
Steven Dyke
Safran Seats USA
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00316261
Message ID:
00316338
Vues:
18
>Cetin,
>
>In my many-side table I have an index called edri2 which is edr_no+edr_subno. These are both numeric fields. In the command window I type Set Order To edri2. When I browse the table the erd numbers are not always grouped together. Shouldn't the rdr numbers be grouped and then ordered by the edr_subno?
>
>Thanks Again,
>S. Dyke


Steven,
Isn't there any typo here ? If they're numeric and you use no conversion to char in that index expression than I can see what's happening.

Assume this. You have edr_no 1,2,3,....100 in parent. edr_no 1,2,...100 in child with edr_subno's 0,1,2,3.

Suppose you're on parent with edr_no = 7.
Child recs with edr_no (4,5,6,7) have a chance to match if their edr_no + edr_subno = 7 (ie: 4 + 3). Where ( 7 + 1) pair would fail to match and wouldn't be in grid. As a thumb of rule you should convert combined indexes to char type (unless doing it for some tricks):

index on padl(edr_no,8,"0")+padl(edr_subno,8,"0") tag main

* RelationalExpression - padl(edr_no,8,"0")
* ChildOrder - Main
* LinkMaster - ParentTable

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform