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

Click here to load this message in the networking platform