Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Moving Through a Table
Message
 
À
30/04/2001 12:17:28
Todd Wolfe
Certified Marketing Services
Kinderhook, New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00501602
Message ID:
00501604
Vues:
19
>I have a fairly large table of about 3000 records that I would like to more down and across each field. This seems to be taking a long time to excute. I am doing the following.
>
>myvar=""
>
>scan
> >FOR gnCount = 1 TO FCOUNT( ) && Loop for number of fields about 40 fields
>
> myvar=myvar+eval(FIELD(gnCount))
> >NEXT
>
>
> endscan
>
>Anyone know how to speed this up a bit?


Well. It depends what kind of fields you are working with. Here is way if it is characters only:
COPY TO temp.txt TYPE SDF
myvar = filetostr("temp.txt")
myvar = strtran(myvar, CHR(13)+CHR(10), "")  && make one long string
- Erik Niese-Petersen

Crazy Dane in USA.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform