Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Memo field length
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00064113
Message ID:
00064150
Vues:
24
>>Is there any function that can tell me how many lines a memo
>>field is? I have an ap that prints memo field text on 2 sided
>>forms and I need to decide when to prompt the userto
>>flip the form...
>>
>>
>>TIA
>>Chris
>
>MEMLINES()

That works better if you use a non-proportional font, such as courier. You would also want to play around with SET MEMOWIDTH, MEMLINES() and MLINE(). If you are printing with the report writer, you could maybe even play around with _pLineNo. But you are going to have another problem. Some of us have found it very difficult to predict where the report writer will decide to do a page break when printing a memo in a stretch field. If you want to nail it down, you will probably need to use the above functions to break the memo into sections for page1 and page2, and make fields on your report for printing each piece which don't stretch or float. There are also a couple of tricks for printing two-page reports, such as you are doing. My trick, which I learned from The Anonymous Bureaucrat, involves using a UNION SELECT to make a cursor with a record for each page. The fields for both pages are superimposed on what VFP thinks is a one-page report, which makes a big mess. Let me know if you want the details. Ed uses some other trick which I think has to do with making separate reports for each page and somehow switching between them. He might also be using a similar UNION SELECT.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform