Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FLL Library & VFP6
Message
De
24/10/1998 15:31:37
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00149291
Message ID:
00150207
Vues:
30
>>PMI George but you reminded me about a problem with Foxtools.
>>I liked the Words() and Wordnum() functions the best and they didn't make it into VFP :-(
>>Anyway, Words and Wordnum fail on strings over 256 chars in several ways. Do you know of any better utils?
>
>Hi, David,
>
>Yep, I think that Words() and Wordnum() should be included in the language proper.
>
>What I didn't (and don't) care for is the lack of correct documentation, which I think keeps people from utilizing the functions more.
>
>As for the 256 character question I hadn't run into that one, and wasn't aware of the limitation. However, using AT() to break the string into smaller pieces would probably be the first thing that I'd look at doing as a workaround.

George, I think we got the third member of Foxtools Forever & Dark Beer Club.

Another thing Words() and WordNum() never liked was the use of memo fields; they had to be converted into strings, even like this: Words(""+the_memo). As for the 256 chars limit, I've always used MLine() to chop long strings. Anyway, counting words in a long strings will probably slow things down, so I preferred chopping 'em regardless of limitation. Good thing about MLine() is that it remembers the end of last line found in the _mline system variable, so for the next line a simple MLine(the_memo, 1, _mline) looks for the next line from _mline offset, which is quick as a fox :).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform