7.0
Table Of Contents
- Other Documentation
- Understanding the PlanetPress Suite
- PlanetPress Design Basics
- Key Concepts
- Detailed Directions
- Dock and Undock Areas of the Program Window
- Named Colors
- Remove Background Color
- Show or Hide Areas of the Program Window
- Use the Messages Area
- Use the Object Inspector
- Use the Object Preview
- Use the Zoom Tools
- Using the Work, Hand, and Zoom Tool Pointers
- Close a Document
- Start PlanetPress Design
- Exit PlanetPress Design
- Create a New Document
- Open a Document
- Refresh a Document
- Save a Document
- Save and Open a Document Template
- Set a Password on a Document
- Undo and Redo Commands
- Use Online Help
- Expand and Collapse Elements in the Structure Area
- Select and Move Elements in the Structure Area
- Cut, Copy, and Paste Elements in the Structure Area
- Change the Display Name of an Element in the Structure Area
- Drag and Drop Files into the Program Window Areas
- Resize the Program Window Area
- Preferences and Toolbars
- Key Concepts
- Detailed Directions
- Change Languages
- Set User Options (Behavior): Notification Messages
- Set User Options (Behavior): Pictures
- Set User Options (Behavior): Color
- Set User Options (Behavior): Object Duplication
- Set User Options (Behavior): Miscellaneous
- Set User Options (Editor): Editor
- Set User Options (Editor): Display
- Set User Options (Editor): Color
- Set User Options (Appearance): Object Inspector
- Set User Options (Appearance): Document Structure Area
- Set User Options (Appearance): Rulers
- Set User Options (Appearance): Document Page
- Set User Options (Appearance): Compiler Messages
- Set User Options (Document default values): Document and Pages
- Set User Options (Document default values): Pictures
- Minimize and Customize the Ribbon
- Capturing Data
- Setting Up a Document
- Key Concepts
- Detailed Directions
- Set Up a Document
- View or Edit the Properties of a Document
- Associate Attachments with a Document
- Set Up Pages: Cachable Execution Options
- Set the Maximum Data Line Length
- Create and Use FreeForm Documents in PlanetPress Design
- Create and Use FreeForm 2 Documents in PlanetPress Design
- Create a Document in VPS or VDX Format
- Create and Use a Document in VDX Format
- Use the VPS RIP
- Use the VIPP RIP
- Add or Remove PPDs
- Refresh the PPD Lists
- Define a Custom Paper Size
- Specify PlanetPress Suite Job Information in a PlanetPress Design Document
- Selecting an Emulation
- Setting Up Pages
- Selecting Data
- Key Concepts
- Detailed Directions
- Add a Data Selection Object
- Add a Postal Address Object
- Create Data Selections within Objects
- Create Data Selections in Database Emulation
- Create Data Selections in XML Emulation
- Use the Data Selector to Create a Data Selection
- Edit a Data Selection
- Define Email, PDF, and Index Information for PlanetPress Image
- Define Index Terms for PlanetPress Search
- Define Fax Information for PlanetPress Fax
- About PlanetPress Design XPath
- Associate XML Data Selection with Objects
- Setting Repeat Properties
- Navigate Data Pages
- Adding Text
- Key Concepts
- Encoding Tables
- Double-byte Character Sets
- CID-Keyed Fonts
- Arabic Content in PlanetPress Design Documents
- Detailed Directions
- Apply a Style
- Create a MICR Style for Account Information on Cheques
- Create a Style
- Delete a Style
- Edit the Encoding Table for a Style
- Export an Encoding Table
- Insert PlanetPress Talk Code Before or After Individual Paragraphs
- Refresh the Font Lists
- Set a Default Encoding Table
- Set the Default Style for New Objects and Groups
- Spell Check Text in a Text Object
- Use the Thesaurus
- View or Edit the Properties of a Style
- Add a Box Object
- Install a PostScript Font in PlanetPress Design
- Add a Text Object
- Define the Colors or Borders of a Box or Text Object
- Change the View on the Text Properties
- Change the Width of the Text Object in the Text Area
- Change the Background Color of the Text Area
- Adjust Margins and Indents
- Set Tabs
- Select, Cut, Copy, Paste, Move or Delete Text in a Text Object
- Undo or Redo Editing Operations
- Insert Text from an External Application into a Text Object
- Use Variables in a Text Object
- Apply a Style to Text in a Text Object
- Adjust Text Justification and Lines per Unit
- Position Text within the Text Object
- Turn Word Wrap On or Off
- Adding Shapes
- Adding Resources
- Key Concepts
- Detailed Directions
- Add Resources
- Update All Image Resources in the PP7 File
- Add PostScript Attachment Resources
- View or Edit the Properties of a PostScript Attachment Resource
- Edit a PostScript Attachment Resource
- View or Edit the Properties of an Image Resource
- Edit an Image Resource
- Replace a Resource
- Delete a Resource
- Remove Unused Resources
- View the Individual Pages of a Multi-Page PDF Resource
- Adding Images
- Key Concepts
- Image Formats: Bitmapped, Vector, and Metafile Formats
- Resolution
- Color Depth
- Pixel Dimensions
- Image Quality
- Scanline Orientation
- Image Size on the Document Page
- PlanetPress Talk Expressions for Dynamic Images that Reference Image Resources
- PlanetPress Talk Expressions for Dynamic Images that Reference External Images
- Image Name and Pathname Resolution in Dynamic Images
- Caches
- Guidelines for Optimizing Images
- Optimization
- Detailed Directions
- Add a Static Image
- Change the Image Resource Associated with a Static Image
- Add a Dynamic Image that References Image Resources
- Add a Dynamic Image that References External Images
- Change the Size of an Image
- Adjust Image Resolution
- Convert Color Images to Grayscale
- Adjust the Pixel Dimensions of a Bitmapped Image
- Adjust the Image Quality Options
- Adjust the Scanline Orientation of Images
- Copy External Images for a Dynamic Image to the Runtime Environment
- Troubleshoot Image Problems
- Barcodes and Business Graphics
- Working with Objects
- Key Concepts
- Detailed Directions
- Convert an Object to PlanetPress Talk
- Debug an Object or Group
- Set the Basic Attributes of an Object or Group
- Set the Manipulation Properties of an Object or Group
- Select Objects and/or Groups
- Lock and Unlock Objects and Groups
- Reposition Objects and/or Groups
- Resize Objects and/or Groups
- View or Edit the Properties of an Object or Group
- Delete Objects and/or Groups
- Align Objects and/or Groups
- Rotate Objects and/or Groups
- Duplicate Objects and/or Groups
- Snap or Unsnap Objects and/or Groups
- Group and Ungroup Objects and/or Groups
- Use the Repeat Properties of an Object or Group
- Edit the Layering Order of Objects
- Copy Values of Properties between Objects and/or Groups
- Working with Metadata
- Graybar Reports
- Conditions
- Key Concepts
- Detailed Directions
- Add a PlanetPress Talk Object
- Enter a PlanetPress Talk Expression in a Text Box
- PlanetPress Supports Global Variables in the Global Function Library Manager
- Use the PlanetPress Talk Properties
- Create a Global Condition
- View or Edit the Properties of a Global Condition
- Apply or Remove a Global Condition
- Use a Global Condition as a Variable
- Create a Global Variable
- View or Edit a Global Variable
- Delete a Global Variable
- Combine Global Conditions
- Override a Global Condition
- Delete a Global Condition
- Create, Edit, or Delete Local Conditions
- Create or Remove a Line Condition
- Verify a Condition
- Add a Global Function
- View or Edit a Global Function
- Delete a Global Function
- Code Samples
- Printing a Document
- Managing Documents and Printers
- Previewing and Installing Documents
- Key Concepts
- Detailed Directions
- Preview a Document On Screen
- Print a Document Preview
- Print Using a Windows Driver
- Generate a Soft Proof
- Convert a Document and Save It to a File
- Control Access to Your Locally Installed Services
- Install a Document
- Perform a Batch Conversion and/or Installation
- Print a Document without Data
- Exclude the Sample Data File from the PP7 File
- Move a Document between PlanetPress Design Installations
- Color Management
- Optimization
- Keyboard Shortcuts
- PlanetPress Design General
- Exit PlanetPress Design
- Use the Help System
- Show or Hide Areas of the Program Window
- Work with Hierarchies
- Work in the Document Structure Area
- Work with Documents
- Preview and Install Documents
- Work with Pages
- Adjust the Zoom
- Use Basic Editing Commands
- Work in the Data Pane
- Work with the Data File
- Work with Data Selections
- Use the Hex Viewer
- Work with Objects
- Work in the Text Properties of a Text Object
- PlanetPress Talk Editor
- General
- Show or Hide Areas of the Editor
- Expand or Collapse Groups in the Commands Area
- Work in the Code Area
- Use Command Name Completion/Argument Insertion
- Undo Commands
- Work with Selections
- Add/Remove Comments
- Indent Code
- Search
- Jump to a Specific Line
- Use Bookmarks
- Execute a Program
- Debug Code
- Print the Script
- PlanetPress Design General
object that spans the entire area in which the data selection can appear, and set a line condition to test for
the presence of the string “PREF.” The data selection applies only to those lines in the data selection region
that contain the string “PREF.”
Related topics:
• Line Conditions (Page 277)
• Conditions (Page 276)
• Global Conditions (Page 276)
• Local Conditions (Page 277)
• Data Selection Objects (Page 104)
18.1.5 Variables
What is a variable ?
Variables are part of PlanetPress Talk, and are described in the PlanetPress Talk Language Reference.
A variable is a value that changes over time, that has a name, a specific type, and a defined scope. The name
makes it possible to reference the variable. All variable names in PlanetPress Talk begin with an ampersand,
for example, &printermode.
The type of a variable defines what kind of data it contains and consequently what kinds of operations you can
perform on it.
The scope of a variable is the context in which it is available. A variable may be available only to a specific
object (a local variable), or available wherever you can enter a PlanetPress Talk expression (a system variable
or a global variable). You can enter a PlanetPress Talk expression in the PlanetPress Talk properties of any
object or page, the PlanetPress Talk properties of the Document properties dialog box, or in any text box that
accepts PlanetPress Talk code (by default these text boxes have a maroon label).
You can define, set and delete both local and global variables in PlanetPress Design. You cannot define or
delete system variables, and, with a few exceptions, neither can you set system variables. Consult the
PlanetPress Talk Language Reference for more precise definitions of system, global, and local variables.
Common Uses of Variables
The following are several common uses for variables:
• Store values that you want to reference at various places in the document.
• Concatenate strings For example, you want to create a footer for each page of a patient record
document that contains the patient’s name, physician’s name, file number, and date the record was last
updated. All the pieces of information are available in the input data.
• Perform calculations For example, the input data for your financial statement document does not
include a figure for year-to-date earnings, but does include earnings per month.
• Create counters For example, the input data for your invoice document contains a variable number of
line items for each invoice.
System Variable Example
The system variable ¤t.datapage contains the page number of the data page the document is currently
processing. The type of this variable is integer; it always contains an integer value. It is a system variable and
thus is automatically initialized and set in PlanetPress Design, and available anywhere you can enter a
PlanetPress Talk expression. Consult the PlanetPress Talk Language Reference for more information on
this and other system variables in the ¤t system object.
Conditions - Key Concepts
Objectif Lune Inc. © 2009 278