Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Moving Through a Table
Message
 
To
30/04/2001 12:17:28
Todd Wolfe
Certified Marketing Services
Kinderhook, New York, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00501602
Message ID:
00501604
Views:
23
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform