General information
Category:
Coding, syntax & commands
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only