Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MLCOUNT() and MEMOLINE()?
Message
De
02/05/2011 17:55:42
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
02/05/2011 16:00:58
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:
01509112
Vues:
56
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform