6.0

Table Of Contents
83
setfillcolor([0,0,100,0])
moveto(1,1)
lineto(1.5,2)
curveto(1,1,1,3,0.5,2)
closepath()
strokeandfill()
Date (function)
Returns the print date. Note that this function will only work if the document runs on a computer, since it is
impossible for the document to get the current date from a printer. So if you send your document to a
printer and then simply send data with the appropriate trigger to that printer, the document will run on
the printer and the function will return an empty string. Use the Run locally option, available in
PlanetPress Watch, to ensure that the document runs on a computer rather than on a printer.
Syntax
date(longdate)
Argument
longdate — Boolean specifying whether to use short or long date. True returns the date in long format,
False, in short format. The precise format of the short and long date value strings are set in the Windows
Regional options.
Code Sample Example
This example shows how to add the current date in long form on a document page.
Example
show(date(true))
Define (procedure)
This command creates a new local variable, or redefines an existing one. The define procedure must appear
before the variable is actually used. It is considered good practice to define all your variables at the top of
your program.
Syntax
define( name, type, value )