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 Include Carriage Returns When Formatting MessageBox Text 3

Status
Not open for further replies.

drosenkranz

Programmer
Sep 13, 2000
360
US
I know VB allows you to use constatns like vbCrLf to indicate a carriage return when you format text for a msgbox(). EX:

lc_text = "This project is the property of CCBSS. " & vbcrlf & vbcrlf
lc_text = lc_text + "Copyright (c) 2001 All rights reserved."
messagebox(lc_text, ,"Attention")

Displays: This project is the property of CCBSS.

Copyright (c) 2001 All rights reserved.

How do you achieve this in VFP?
 
Add a CHR(13) (== carriage return) to your text.

Weedz
veld4663@exact.nl

'It never hurts to help...' - Eek the cat.
 
drosenkranz


MESSAGEBOX([This project is the property of CCBSS.] ;
+CHR(13) ;
+CHR(13) ;
+[Copyright (c) 2001 All rights reserved.],etc


You can also insert variables and data, the same way

+ALLT(STR(RECCOUNT([TABLENAME])));
+ALLT(STR(RECNO([TABLENAME])));
+ALLT(TOWN.town)


Chris

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top