Example Code

Count Clipboard Formats

Code and Documents

Attachment

Overview

This VI will return an integer of the number of data formats currently on the clipboard.

Description

CountClipboardElements.vi calls the CountClipboardFormats() function from user32.dll.  This call returns on integer of the number of data formats on the clipboard into LabVIEW.  The CountClipboardFormats() function requries no arguments.

For additional information on this function call, see this article on msdn.com

Steps to Implement or Execute Code

  1. Load CountClipboardElements.vi into LabVIEW
  2. Run the VI

Requirements

Software

LabVIEW 2011 or later.

VI Snippet

CountClipboard.png

**This document has been updated to meet the current required format for the NI Code Exchange. For more details visit this discussion thread**

Applications Engineer

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors