scrapcalc
scrapcalc
FORMULA

The scrapcalc statement calculates a formula and stores the result in the clipboard. (Note: The same effect can be achieved by putting the word clipboard on the left side of an assignment.)

Parameters

This statement has one parameter:

formula – calculates the value that will be placed into the clipboard.

Description

The scrapcalc statement allows you to use the clipboard to communicate with other programs. This example copies the name and address onto the clipboard in mailing label format. The user could then paste the address into a letter or other word processing document.

    scrapcalc Name+cr()+Address+cr()+City+", "+State+" "+Zip

The same effect can be achieved by putting the word clipboard on the left side of an assign statement. Here is the same procedure rewritten using an assignment instead of using the scrapcalc statement.

    clipboard=Name+cr()+Address+cr()+City+", "+State+" "+Zip

See Also

- clear -- deletes the contents of the current cell without touching the clipboard.
- clipboard( -- returns whatever text is currently on the computer's clipboard.
- copy -- copies the contents of the current field onto the clipboard.
- cut -- deletes the contents of the current field, copying it onto the clipboard.
- paste -- pastes the contents of the clipboard into the current field.

History

Version | Status | Notes
10.0 | No Change | Carried over from Panorama 6.0