Monday, March 15, 2021

Tip of the Day: Automatically Capture File Information for Dropped Files
Product.......: R:BASE Plugin Power Pack X.5 (Version 10.5)
Build.........: 10.5.3.20304 or higher
Sections......: LoadFileNamePlusPlus Plugin
Keywords......: Preselect, File Properties, Drag and Drop, Files

Did you know that the LoadFileNamePlusPlus Plugin in the Plugin
Power Pack includes a new parameter to automatically evaluate
a passed file list?

The added PRESELECT_FILES parameter expects a comma delimited
string value containing a list of files. When used, the series
of variable are automatically generated for the file list, and
the "Open" file dialog window is not displayed.

The generated variables include the number of files, along with
the file name, path, file name with path, extension, date/time,
and size, for each of the files in the passed file list.

The PRESELECT_FILES parameter is ideal when using drag and drop
functionality in forms, where a list of files are dropped into
a control (edit/memo). The DROPPED_FILES property will capture
the list of files that were dropped into the control.

An "On Drag Drop" EEP may look like the below:

-- On Drag Drop EEP
   GETPROPERTY DropTarget DROPPED_FILES vDroppedFiles
   PLUGINS LoadFileNamePlusPlus vResult +
   |PRESELECT_FILES &vDroppedFiles
   -- process return variable list here...
   RECALC
   RETURN

The end result easily returns detailed file information for the
files dragged and dropped into the form control!

Very Best R:egards,

Razzak.

https://www.rbase.com
http://www.facebook.com/rbase/


--
For group guidelines, visit 
http://www.rbase.com/support/usersgroup_guidelines.php
--- You received this message because you are subscribed to the Google Groups "RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rbase-l/0Ld04c-1m3n3n16hc-00iGdG%40mrelay.perfora.net.

Reply via email to