|
-
Dec 19th, 2007, 12:42 PM
#1
Thread Starter
New Member
Printing Bold and Plain text in the same line
Is it possible to print bold and plain text in the same line?
I want a line to look like this:
TITLE: description
my code:
.fontbold = true
.print "TITLE: "
.fontbold = false
.print description
But this puts the two strings on different lines.
Any help would be great, thanks.
-
Dec 19th, 2007, 01:13 PM
#2
Re: Printing Bold and Plain text in the same line
Welcome to the forums. 
Not in a standard textbox, but you can do that in a RichTextBox.
-
Dec 19th, 2007, 01:31 PM
#3
Re: Printing Bold and Plain text in the same line
It appears you are printing to a form or picturebox. Add the semicolon to the end of the line; additional printing will stay on same line. Remove semicolon and new line starts.
Code:
.fontbold = true
ControlName.print "TITLE: "; ' < semicolon
.fontbold = false
ControlName.print description
Last edited by LaVolpe; Dec 19th, 2007 at 02:11 PM.
-
Dec 19th, 2007, 02:02 PM
#4
Re: Printing Bold and Plain text in the same line
 Originally Posted by LaVolpe
It appears you are printing to a form or picturebox.
Where did you get that from? (Just curious)
-
Dec 19th, 2007, 02:06 PM
#5
Re: Printing Bold and Plain text in the same line
The .Print part; see it a lot for school projects where teach wants stuff printed to form or picbox vs file. Could be other things, but don't think post it is textbox/rtb related.
-
Dec 19th, 2007, 02:10 PM
#6
Re: Printing Bold and Plain text in the same line
Nice piece of deductive reasoning.
-
Dec 19th, 2007, 05:29 PM
#7
Re: Printing Bold and Plain text in the same line
Try with .Print command any combination of somethings below, separate them or ending with semicolon (;) or comma (,):
Spc(n)
Tab(n)
Tab
{AnyTextOrNumberExpression}
-
Dec 19th, 2007, 08:47 PM
#8
Thread Starter
New Member
Re: Printing Bold and Plain text in the same line
Thanks for all the help and ideas. Will give it a shot..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|