Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sums
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Re: Sums
Divers
Thread ID:
00761911
Message ID:
00762866
Vues:
11
>Terry, I think I understand that the first pass, top to bottm, puts the dbf into an
>array. Once there, the array can be addressed much like a spreadsheet.
>Thus: repl nFieldTwo with myAr[1]+myAr[2]+....+myAr[6] && Field being summed
>
>But I realize that I just wanted to make sure that I had not missed a new command,
>with all of the new stuff happening with VFP --
>
>one that already allows vfp to address a dbf more like a spreadsheet
>-- from scratch, without having
>to first pump it into an array --
>such that a request for the value of a field
>could be combined with recno(). so that ? MyField.recno()-6 might return the value
>of MyField but six records prior. On the other hand, Fred Taylor notes that
>the go command is already very fast.

It is fast - but why rattle the disk 6 times for each record, when a buffered (array) approach will do it in memory (and much quicker) than a goto?



>
>Thanks
>Steve
Imagination is more important than knowledge
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform