Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MLCOUNT() and MEMOLINE()?
Message
De
30/04/2011 10:03:36
 
 
À
29/04/2011 18:19:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Divers
Thread ID:
01508891
Message ID:
01508909
Vues:
113
>Hi friends
>
>Before invent an UDF I ask you.
>
>Clipper has two very useful functions named "MLCOUNT()" and "MEMOLINE()" both very similar to ALINES() or MEMLINES() but they don't work as I would like.
>
>What I need is separate a string in as lines as necesary so that I can print it in a ticket printer. I do this in Clipper but I can't get it in VFP.
>
>MLCOUNT() and. MEMOLINE() are "inteligents" functions. They don't truncate words.

You can pass a parameter to ALINES() to break the string up on whatever separators you choose. Alternatively, you can use GETWORDNUM() to break the string up one word at a time. However, that's a lot slower.

Tamar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform