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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CHR(13) doesn't give me a carriage return

Status
Not open for further replies.

shelbytll

Programmer
Dec 7, 2001
135
SG
CHR(13) doesn't give me a carriage return

I tried the following:
x="Hi" + CHR(13) + "John"
@0,0 say x

It return me Hi <a square character> John
 
Generally to get a carriage return you have to add to chr(13) an chr(10). I've tried myself :
x=&quot;Hi&quot; + CHR(13) + chr(10) + &quot;John&quot;
@0,0 say x

but nothing. (2 squares).
Try ? x. This work.
Anyway, if you use VFP 6.0, Microsoft says that you should use the label or textbox control.
 
in normal useage what you have works like

messagebox('message&quot;+chr(13)+'message',0,'tittle')

but in your usage it depends on what the display supports in the way of character display. Attitude is Everything
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top