Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Challange VFP: specify Text Length
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00648876
Message ID:
00649400
Vues:
14
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform