Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to: Double space a memo field on a report 1

Status
Not open for further replies.

keepingbusy

Programmer
Apr 9, 2000
1,470
GB
Hi all

When I print a report, is there any way to get the memo field on the report to double space?

(Version 6 or 9)

Many thanks

Lee


Visual FoxPro Versions: 6 & 9
Operating System: Windows XP
 
Hi Jim

Tried out your suggestion and also changed the font for the memo field to Times New Roman 12. It now works perfectly, many thanks to you.
The final code (test only) for anyone else looks like this:
Code:
SET MEMOWIDTH TO 80
USE TEST
GO 1
REPORT FORM TEST ;
  PREVIEW FOR RECNO()=1
CLEAR
RETURN

FUNCTION dublspace
LPARAMETER mymemo
retval = ''
FOR i = 1 TO MEMLINES(mymemo) 
  retval = retval + MLINE(mymemo, i) + ;
  CHR(13) + CHR(13)
ENDFOR
RETURN retval
Thanks again Jim, I'm grateful to you

Lee

Visual FoxPro Versions: 6 & 9
Operating System: Windows XP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top