Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MLCOUNT() and MEMOLINE()?
Message
From
02/05/2011 17:55:42
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
To
02/05/2011 16:00:58
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:
01509112
Views:
55
>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
Set memowidth to 33
mLine() respects that setting, and that is the length at which it will start looking (to the left) for the end of last word. The default is 50.

The difference between your line length and _mline after it is 6, a bit much. I'd expect 2 (a cr+lf), but maybe you had trailing spaces or an empty line in between, that would explain it.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform