Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MLCOUNT() and MEMOLINE()?
Message
From
02/05/2011 16:00:58
 
 
To
02/05/2011 14:20:14
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
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:
01509096
Views:
60
Hi Dragan:

Thanks for the time you spend in explaining me.

Now I've understood you. It reminds me the function FREADSTR() (at least in Clipper) and FSEEK() with the offset and the byte.

Anyway it didn't work.

The test line I want to print has 46 characters. Well. The code you suggested me prints 40 (the real wide of the paper) I must say I changed the code. Not 33 but 40. And the _mline variable after the first ??? is 46

As the last 7 characters are a word MLCOUNT() and MEMOLINE() Clipper functions are intelligent and cut in the byte 39 and print 39 characters. The rest is the second line.

Apparently MLINE() function assumes there is any character which indicates the end of a line (in Clipper was CHR(114) or so named "soft carriage return") but that applies to memo fields edited in a MEMOEDIT() function. You can press enter (hard carriage return) or let function memoedit force a soft carriage return so that the text is not scrolled horizontally but vertically.

Don't insist. VFP hasn't got such marvelous functions MLCOUNT() and. MEMOLINE()

I really thank you very much.

Héctor
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform