Professional Documents
Culture Documents
Viva Clipper !
@…SAY comand display data at a specified screen or printer row and column with
syntax :
@…SAY command output can be forma ed using the PICTURE clause with a
<cSayPicture>. This performs the same action as the TRANSFORM() function. A
<cSayPicture> may consist of a function and/or a template. A PICTURE function
imposes a rule on the entire @…SAY output. A PICTURE template defines the length of
the @…SAY output and the forma ing rule for each position within the output.
Function string:
A PICTURE function string specifies forma ing rules which apply to the SAY’s entire
display value, rather than to particular character positions within it.
https://vivaclipper.wordpress.com/2012/09/12/what-is-picture-function-template/ 1/5
9/2/2018 PICTURE function / template | Viva Clipper !
The function string consists of the @ character, followed by one or more additional
characters, each of which has a particular meaning (see table below).
A function string may be specified alone or with a template string. If both are present,
the function string must precede the template string, and the two must be separated by
a single space.
Template string:
https://vivaclipper.wordpress.com/2012/09/12/what-is-picture-function-template/ 2/5
9/2/2018 PICTURE function / template | Viva Clipper !
Examples :
This example uses an @…SAY with a PICTURE clause to display forma ed output:
nNetIncome = 7125.50
nNetLoss = -125.50
cPhone = "2134567890"
cName = "Kate Mystic"
This example is a small label printing program that uses SET DEVICE to direct output
to the printer and SETPRC() to suppress automatic EJECTs:
https://vivaclipper.wordpress.com/2012/09/12/what-is-picture-function-template/ 3/5
9/2/2018 PICTURE function / template | Viva Clipper !
Advertisements
Report this ad
Report this ad
https://vivaclipper.wordpress.com/2012/09/12/what-is-picture-function-template/ 4/5
9/2/2018 PICTURE function / template | Viva Clipper !
This entry was posted in Uncategorized and tagged @...SAY, Device, EJECT,
FUNCTION, picture, SET DEVICE, string, TEMPLATE, template function, template
string, TRANSFORM(). Bookmark the permalink.
https://vivaclipper.wordpress.com/2012/09/12/what-is-picture-function-template/ 5/5