• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 183
  • Last Modified:

message boxes

how do you use multiple lines of text in an turbo pascal 1.5 for windows message box, and a button come to think of it?
0
pobwest
Asked:
pobwest
  • 3
  • 3
  • 2
  • +1
1 Solution
 
BigRatCommented:
For a MessageBox you just include a carriage return character in the string (#$0D) eg :
     "This is the first line"#$0D"And this the second"
(Hopefully I have the syntax right!)
I have never tried it with a button! Try it and let us know.
0
 
scrapdogCommented:
If $0D doesn't work (it should), you could also try $0a.
0
 
vikiingCommented:
#$0D (#13 is the same, and easier) is "Carriage return", and #$0A (#10) is "Line feed"; if the don't work alone, maybe the combination of both (#13#10) does.
0
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

 
pobwestAuthor Commented:
Thats sorted it, thanks folks

0
 
BigRatCommented:
Just one cotton picking minute my son!
Who gets the Cheese/FairMaiden/Bone?*

*delete that which is not applicable
0
 
pobwestAuthor Commented:
?? who ever wants it, these are only comments,  i thought you had to answer?
0
 
scrapdogCommented:
Give the cheese and bone to the rat.  I'll take the other thing.
0
 
pobwestAuthor Commented:
no way, the fair maiden is MINE!
scrapDOG - bone,
bigRAT - cheese,
0
 
BigRatCommented:
Yes we have to answer, but you have to decide who's answer is correct. If I answer I block for all others, so one adds comments. The questioner then posts a message which says "Thanks x - your solution was correct/the best/the funniest/and so forth" and then x posts an answer which reads "Thanks"

Thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 3
  • 3
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now