clipboard(
)

The clipboard( function returns whatever text is currently on the computer’s clipboard.


Parameters

No parameters.


Description

This function returns whatever text is currently on the computer’s clipboard.

Here’s an example that grabs a name from the clipboard and selects all the records containing that name:

local findThis
findThis=clipboard()
select Name contains findThis

This example copies the contents of the clipboard into a variable before using it in the select statement. This is not absolutely necessary – in fact this procedure could have been written in a single line like this:

select Name contains clipboard()

However, the original procedure will be much faster. Because of the overhead involved in accessing the operating system, accessing the clipboard is much slower than accessing a variable. If you’re only going to be accessing the clipboard a few times, by all means use it directly. But if you are going to access the clipboard over and over again (as the select statement does) it’s much better to copy the value into a variable first.


See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0