O'Reilly logo

DarkBASIC Pro Game Programming, Second Edition by Joshua R. Smith, Jonathan S. Harbour

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using the Clipboard

The Clipboard is memory that Windows has set aside to store and retrieve data. The Clipboard is like a file, but you do not have to open or close it. Almost any program has access to this memory through a copy to clipboard, cut to clipboard, or paste from clipboard command. It is filled with text from a program that gives access to the Windows clipboard. DB gives you access to the Clipboard anytime you want.

Reading from the Clipboard

If you want to read the clipboard, you can use the GET CLIPBOARD$ command, which is the DB equivalent of pasting text in a word processor, e-mail software, or other program that supports copy and paste functions. The command takes no parameters, but it returns a string containing the content ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required