WINDCOPY
(Statement)

Copy window data.

WINDCOPY <copy source window number>, <copy destination window number>

<copy source window number>
Specifies the window number from which data will be copied (0 to 511).
<copy destination window number>
Specifies the window number to which data will be copied (0 to 511).

-
This statement does not change the initial setting. When restarting the system after powering OFF, the copied setting is lost.
-
To execute this statement, a µVision board (option) is required.

VISSCREEN 1, 0, 1
|
'
|
VISCLS 0
|
'
|
VISCAMOUT 1
|
'
|
WINDCLR 2
|
'
|
WINDMAKE R, 1, 50, 100, 0, 2
|
'
|
VISLOC 0, 0
|
'
|
VISPRINT "Copy source window information"
|
|
FOR I1 = 0 TO 7
|
'
|
FOR I2 = WINDREF(1, I1)
|
'Obtain window number 1 data
|
FOR VISLOC 0, 1+I1
|
'Set the position to display
|
FOR VISPRINT "Data";I1;"=";I2
|
'Display the window
|
NEXT I1
|
'
|
VISLOC 0, 9
|
'
|
VISPRINT "Before window information copy"
|
|
FOR I1 = 0 TO 7
|
'
|
FOR I2 = WINDREF(2, I1)
|
'Obtain window number 2 data
|
FOR VISLOC 0, 10+I1
|
'Set the position to display
|
FOR VISPRINT "Data";I1;"=";I2
|
'Display the window
|
NEXT I1
|
'
|
WINDCOPY 1, 2
|
'
|
VISLOC 0, 18
|
'
|
VISPRINT "After window information copy"
|
|
FOR I1 = 0 TO 7
|
'
|
FOR I2 = WINDREF(2, I1)
|
'Obtain window number 2 data
|
FOR VISLOC 0, 19 + I1
|
'Set the position to display
|
FOR VISPRINT "Data";I1;"=";I2
|
'Display the window
|
NEXT I1
|
'
|