4D v14.3

SET FILE TO PASTEBOARD

Home

 
4D v14.3
SET FILE TO PASTEBOARD

SET FILE TO PASTEBOARD 


 

SET FILE TO PASTEBOARD ( file {; *} ) 
Parameter Type   Description
file  String in File name or complete pathname of file
Operator in If passed = add; If omitted = replace

The SET FILE TO PASTEBOARD command adds the complete pathname of the file passed in the file parameter. This command can be used to set up interfaces allowing the drag and drop of 4D objects to files on the desktop for example.

In the file parameter, you can pass either a complete pathname or a simple file name (without a pathname). In the latter case, the file must be located next to the database structure file.

The command accepts the star * as an optional parameter. By default, when this parameter is omitted, the command replaces the contents of the pasteboard by the last pathname specified by file. If you pass this parameter, the command adds the file to the pasteboard. This way it can contain a "stack" of file pathnames. In both cases, if data other than pathnames was present in the pasteboard, it is erased.

Note: The pasteboard is in read-only mode during the On Drag Over form event. It is therefore not possible to use this command in that context.

 
PROPERTIES 

Product: 4D
Theme: Pasteboard
Number: 975

 
HISTORY 

Created: 4D v11 SQL
Modified: 4D v12

 
SEE ALSO 

Get file from pasteboard

 
ARTICLE USAGE

4D Language Reference ( 4D v12.4)
4D Language Reference ( 4D v14 R3)
4D Language Reference ( 4D v14 R2)
4D Language Reference ( 4D v13.5)
4D Language Reference ( 4D v14.3)
4D Language Reference ( 4D v14 R4)

Inherited from : SET FILE TO PASTEBOARD ( 4D v11 SQL Release 6)