Cicode Programming Reference > Cicode Function Categories > Clipboard Functions Introduction > ClipSetMode

ClipSetMode

Sets the format of data sent to the Windows clipboard.

Syntax

ClipSetMode(nMode)

nMode:

The mode of the data:

1 - ASCII Text

2 - CSV (Comma separated values) format

You can select multiple modes by adding modes together.

Return Value

The value of the previous mode.

Related Functions

ClipCopy, ClipWriteLn

Example

/* Set the clipboard to CSV mode, write two values, and reset the 
clipboard to the original mode. */
nOldMode = ClipSetMode(2);
ClipCopy("100,200");
ClipSetMode(nOldMode);

See Also

Clipboard Functions