7.5

Table Of Contents
show(field('Qty'))
moveto(5.5,&current.y)
show(field('UnitPrice'))
moveto(6.5,&current.y)
show(field('Total'))
%Add line total to tot variable
set(&tot,&tot+ strtofloat(field('Total')))
moveto(0,&current.y+.25)
endfor()
moveto(6.5,8)
show(floattostr(&tot))
Time (function)
Returns the print time. 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 time 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 the PlanetPress Suite Workflow Tools, to ensure that the document runs on a computer rather
than on a printer.
Syntax
time(displayseconds)
Argument
displayseconds
Boolean specifying whether to display the time using seconds. True returns the time with seconds, False, without. The precise
format of the of the time value strings are set in the Windows Regional options.
Code Sample Example
This example shows how to add the current time with seconds (11:14:46 AM, as opposed to 11:14 AM, for example) on a doc-
ument page.
Example
show(time(true))
©2010 Objectif Lune Inc - 370 -