SetText

Syntax textbox.SetText(TextString)

Description Sends the specified text to the text box

You can force a new line in the textbox by insert a backslash and the letter n (\n) where you want the new line to occur. Example 5.35 illustrates how you can do this and what the effect of it is.

Parameters Textbox.SetText accepts the following parameters.

TextString

String

The text that should be displayed in the text box.

If it contains any spaces or irregular characters, you will probably want to URL-encode it (see "URL Encoding" in Chapter 11 of the PopChart Server User Guide) when you are not using the PopChart Embedder.

Example 5.35 Setting the Text in a Text Box

textBox.SetText(Here's Line 1\nAnd Here's Line 2)

Note: When forcing a new line in JavaScript, \n is interpreted as an escape code. You will need to use \\n in JavaScript to specify a new line.