Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 180
  • 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
Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

 
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

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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