Using Duplication Commands
169
Using Duplication Commands
Both the duplication commands use the same basic format. F or these
examples we will use the HDUP and VDUP commands to duplicate the
BOMB Logo, which we create in a later section, on a form. The following
program would print the bomb logo four times horizontally on a form :
Example 1:Horizontal Duplication
~CREATE;BOMB
HDUP;4;10
LOGO
10;10;BOMB
STOP
HDUP;OFF
END
~EXECUTE;BOMB
~NORMAL
Printer Output:
Example 2:Vertical Duplic ation
The following program would print the bomb logo four times vertically.
~CREATE;BOMB
VDUP;4;10
LOGO
10;10;BOMB
STOP
VDUP;OFF
END
~EXECUTE;BOMB
~NORMAL
Printer Output: