GRID.Copy2Clip |
status = GRID.Copy2Clip( nControl AS INTEGER ) AS INTEGER
Copy the selected cells or the entire grid to the clipboard. If the GRID.EnableCopyWithoutSelection has been called the entire grid including the headers can be copied into the clipboard and then pasted into a document or Excel spreadsheet.
Example:
nControl = GRID.Create( "My Grid", WS_VISIBLE+WS_CAPTION, -640, 0, 0, 480 ) GRID.PutArray( nControl, arr, 1, 1 )
GRID.EnableCopyWithoutSelection( nControl, TRUE ) GRAPH.Copy2Clip( nControl )
|