Salesforce

How Do I Retrieve a Full Path Name from a Dragged File? (Magic xpa 4.x)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

How Do I Retrieve a Full Path Name from a Dragged File? (Magic xpa 4.x)

When you drag a file into an alpha field from Windows, the full file name comes with it automatically. If you select two files in the file browser, you will get both file names separated by a comma.

To fetch the file name manually, use the DropGetData(6) function.

In this code snippet:

  • We check that, in fact, a file is being dragged by using DropFormat(6).

  • We fetch the file name of the file by updating the file name with DropGetData(6).

See also

The Online and Rich Client Samples projects (program HG05 and RHG05)

Reference
Attachment 
Attachment