Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MLCOUNT() and MEMOLINE()?
Message
From
30/04/2011 10:03:36
 
 
To
29/04/2011 18:19:47
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Miscellaneous
Thread ID:
01508891
Message ID:
01508909
Views:
112
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform