Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Challange VFP: specify Text Length
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00648876
Message ID:
00649400
Views:
13
The process while in VFP is noticably sluggish...
The Array method you mentioned isn't much speeder.

VFP is favorite, Great to see that it can be done
Thanx - Vlad


>Hi!
>
>This code will work way too slow in VFP. VFP is interpreter, so it is hard to do a character-to-character processing ofr text because it is slow. That is why there are a lot of string functions in VFP that simplify many things greatly, and make life easier ;)
>
>If there are less than 65000 records, you can use ALINES() function to quickly and easy put each line of text into the separate array element. Then just loop through array till ALEN() of that array, do anything you want with string length in array element, and write back into the file...
>
>
>Hope this helps.
>
Edgar L. Bolton, B.S. B.B.A.
Previous
Reply
Map
View

Click here to load this message in the networking platform