QD_GetDroppableFileExtensions

QD_GetDroppableFileExtensions(areaRef; fileExtensions):error
areaRef Longint Area reference
fileExtensions Array text Droppable file name extensions
error Longint Error result

Get the file extensions accepted by a QDrop area

Parameter areaRef is the reference to the plug-in area.

Parameter fileTypes is a text array that receives the file extensions accepted by the area.

In addition to standard file extensions, such as "txt" and "jpg", QDrop may also use magic file types that provide extra matching criteria.

qd_anyFileMagic "any*" Accept any file
qd_folderMagic "dir*" Accept folders

Example

   // Retrieve file extensions

C_LONGINT($error)
ARRAY TEXT($fileExtensions;0)

$error:=QD_GetDroppableFileExtensions(xDrop;$fileExtensions)

Related commands

QD_SetDroppableFileExtensions Configure a QDrop area to accept specific file extensions