Programming Guide



sm_*PiMwPasteFromClipboard

Paste data from the Windows clipboard to field(s)

#include <smmwuser.h>
int sm_n_PiMwPasteFromClipboard(const char *fields);
int sm_i_PiMwPasteFromClipboard(const char *fields, int from);
int sm_ii_PiMwPasteFromClipboard(const char *fields, int from,  int to);

fields
A comma separated list of one or more fields. When pasting to a word wrapped field, only one field can be specified. Grids and synchronized scrolling groups can also be specified, in which case, data is pasted to all the grid or group members.

from
For a word wrapped field, the starting character to paste to; otherwise the starting occurrence.

to
For a word wrapped field, the ending character - 0 (zero) to replace the remaining characters; otherwise the ending occurrence.

Environment

Windows interactive. First released in Panther 5.40.

Returns

Description

For a word wrapped field, the data is just pasted, including any new line and tab characters in the clipboard data.

Otherwise, the clipboard data is assumed to be tab separated with each occurrence being on a separate line. This allows, for example, pasting data copied to the clipboard from a spreadsheet.

See Also

sm_*PiMwCopyToClipboard