ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / Drag and drop functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
ExplorerRetrieve (Function)
In french: ExplorerRécupère
Retrieves the number and the name of the files "dropped" from the explorer.
Note To obtain information from the explorer, the dialog must be initialized with the ExplorerAccept function.
Nb = ExplorerRetrieve(_EVE.wParam)
// Récupération de tous les fichiers
FOR i = 1 TO Nb
	Trace(ExplorerRetrieve(_EVE.wParam, i))
END
Syntax

Retrieving the number of dropped files Hide the details

<Result> = ExplorerRetrieve(<Message>)
<Result>: Integer
Number of selected files.
<Message>: System integer
First parameter of the WM_DROPFILES message (returned by the explorer to the WINDEV window or control), which means _EVE.wParam.

Retrieving the name of the dropped files one by one Hide the details

<Result> = ExplorerRetrieve(<Message> , <Number>)
<Result>: Character string
Name and path of the dropped file.
<Message>: System integer
First parameter of the WM_DROPFILES message (returned by the explorer to the WINDEV window or control), which means _EVE.wParam.
<Number>: Integer
Index of file whose name must be retrieved.
Remarks
When a "Drag and Drop" is performed between the explorer and a WINDEV window (or control), the explorer sends the WM_DROPFILES message to the relevant target. The first parameter of this message (_EVE.wParam) used in ExplorerRetrieve returns the content of the "Drag and Drop" operation (number and name of the selected files).
Remarks:
  • The number and the name of the files selected in the explorer cannot be retrieved if no "Drag and Drop" operation is performed between the explorer and a WINDEV window.
  • The WM_DROPFILES constant is defined in the Winconst.wl file supplied in the "Personal\External" subdirectory and it is set to 0x233.
Component: wd300std.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help