PTextEnter

Enters text at the location of the insertion point (text cursor).


Command constructor

PTextEnter(const char * sText);
Text to enter. The number of characters is limited only by available memory.
Placing and moving the insertion point. The insertion point must be within a text block to use this command. Place the insertion point (text cursor) into a text block using the PTextEdit command, and then move the insertion point to the desired location with the PTextCursor command.

Creating a new story. To create a new story, use the PNewStory command.

Entering special characters. Quotation marks, both standard and curly, printer's quotation marks, and the automatic page number marker are the only characters that require special treatment in the command language. Type any other characters directly, including backslashes, tabs, and soft and hard returns.

To include a quotation mark within the text you want to enter, precede it with a single backslash (\).

How you enter the automatic page number character depends on both the platform (Macintosh or Windows) and on the application you are using to create your Plug-in or script. If you are writing a script in PageMaker, you can type the pagination character directly, just as you would to place it on the page (Command + Option + p on the Macintosh or Ctrl + Shift + 3 in Windows). Otherwise, enter the hexadecimal number 0x18, using the method required by the scripting application or programming environment in which you are writing your Plug-in or script.

Example. The following example enters a date and a client's name and address at the insertion point.

PSelect (1);
PTextEdit();
PTextEnter("January 1, 1992

Ian \"Big Guy\" Zander
CA Inc.
1027-1973 Basique Katt Drive
Happy, IL 12244");


See also

The PNewStory, PTextCursor, and PTextEdit commands

The PGetTextCursor query

Adobe PageMaker 6.5 Help > Commands > Story > New Story


Copyright © 1996, Adobe Systems Incorporated. All rights reserved.

Comments or suggestions? Contact Adobe Developer Support