Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get records
Message
De
29/08/2004 18:45:29
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
29/08/2004 18:38:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00937427
Message ID:
00937453
Vues:
15
>hi,
>
>i do evry thing you write but still i get the same ,but i change the code littel bit as under. it works.
>
>CLOSE all
>use aliq excl
>*index on no tag no
>*set order to "no"
>for i = 1 to 20 && assume 20 values for flag
>   * seek i  &&Table has no index order set
>   LOCATE FOR no=i && this is what i add
>  copy next 5 to temp while no = i
>use aliq1
>  append from temp
>use aliq excl
>
>next
>
LOCATE can be much slower. Besides, if the table is not ordered, records for the same flag are not necessarily contiguous (one after another). You should try to make SEEK work.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform