6.0

Table Of Contents
20
PlanetPress Talk Basics
1
For example, consider how you might build the following expression in a text box that accepts PlanetPress
Talk code.
pos('BLACK',trimright(@(6,18,35)))
You right-click in the text box and choose Integer functions | pos. The following appears in the text box,
at the insertion point:
pos(st1,st2)
You then manually replace st1 and st2 with the arguments you want the function to use. Recall that an
argument can be a constant, a variable, or a function. You replace the first argument with the constant
value ‘BLACK’:
pos(’BLACK’,st2)
You replace the second argument by the trimright function. You highlight the second argument, right click
and choose String functions | trimright.
pos('BLACK',trimright(st2))
Finally, you insert the data selection as the argument to the trimright function. You highlight the
argument to the trimright function, right-click in the text box, choose Select data, and select the data
using the Data Selector. When you exit the Data Selector, the data selection appears as the argument for
the trimright function:
pos('BLACK',trimright(@(6,18,35)))
Consult the PlanetPress Design User Guide, and in particular the area of the PlanetPress Design user
interface you are using to enter PlanetPress Talk code, for help with the different shortcuts PlanetPress
Design provides for entering PlanetPress Talk code.
Define and Assign Values to Variables
You use the following PlanetPress Talk following commands to define and set variables:
Select Data
You use the @ function to select data in PlanetPress Talk. This command selects data on a single line of the
data page. For example, the following returns the string of data found on line 3, from column 12 through
30 of the current data page:
@(3,12,30)
Use: To:
define
Create a local variable.
set
Assign a value to a local or global variable.
:= Assign a value to a local or global variable.