WPaste Function (Windows)

Pastes the contents of the Clipboard into a graphics window.

Usage

status = WPaste( [window_index] )

Input Parameters

window_index — (optional) The index of the window to which the contents of the Clipboard are to be pasted. If not specified, the current window is assumed.

Returned Value

statusA value indicating success or failure of the paste operation; expected values are:

< 0 — Indicates an error. For example, an error value is returned if no graphics are on the clipboard.

0 — Indicates a successful paste.

Keywords

None.

Discussion

You can paste graphics from the Clipboard in two ways:

The WPaste function

The Paste from Clipboard option on the graphics window Control menu.

Example

See the WCopy function for an example that demonstrates an application of WPASTE.

See Also

WCOPY

The graphics window Control menu includes a command that pastes graphics from the Clipboard. For information on the Control menu, see the PV‑WAVE User Guide.