PasteFromClipboard

From Planimate Knowledge Base
Revision as of 13:50, 12 September 2014 by Jay.Lange (talk | contribs) (Created page with "Function that provides the ability for the content of the Windows (Clipboard) to be pasted into a nominated within planimate. Function requires Target Table - table to paste th...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Function that provides the ability for the content of the Windows (Clipboard) to be pasted into a nominated within planimate.

Function requires

Target Table - table to paste the data into Configure - paste options.

Configure should be a 1 or 0.

A 1 will prompt the user with the standard planimate dialog for paste allowing the user to select how the data will be pasted into the table (include column and row headers, append rows etc).

File:C:\Users\Jay\Desktop\clip.png

A 0 will not offer the user dialog. The settings previously used/set by the modeller will be used.

The function will return the following once processed. Anything result other than zero should be considered a 'failed function call'.

RCB_OK = 0, RCB_MEMORY = 1, RCB_FILEOPEN = 2, RCB_DISK = 3, RCB_NODATA = 4 RCB_DATAERROR = 5, RCB_CANCELLED = 6