Help with semicolon inside a write() function

R

RogerF

Hello,
I want to print a semicolon inside a write() function.
Example:

If I want to print out

Be all that you can be;
And then some.

I though using:
write('Be all that you can be;')
write('And then some.')

Well the presense of the semicolon at the end of the word be does not
work.

Anyways, can anyone tell me how to write a semicolon in a write
statement? Sorry I just don't know the syntax.

Thank you in advance for your help,

-Roger
 
L

Lee

RogerF said:
Hello,
I want to print a semicolon inside a write() function.
Example:

If I want to print out

Be all that you can be;
And then some.

I though using:
write('Be all that you can be;')
write('And then some.')

Well the presense of the semicolon at the end of the word be does not
work.

You need to be more specific.
What do you mean by "does not work"?
Do you see an error message, or does something happen
(or not happen) in a way that you didn't expect?
Is this code in a web page, or something else?

Anyways, can anyone tell me how to write a semicolon in a write
statement? Sorry I just don't know the syntax.

Your syntax is fine for writing a semicolon in a document.write()
method call in Javascript, if that's what you're asking about.
What you're trying won't print the two strings on separate lines,
though.


--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,155
Messages
2,570,871
Members
47,401
Latest member
CliffGrime

Latest Threads

Top