At 11:48 AM 9/15/2010, [email protected] wrote:
Is there a parameter to sort the file listing in either of
the load file name plugins. I need to list files in particular
folder, in detail view mode, sorted by the modified date in
decending order. (Most recent file down to the oldest file)
I can do all the above but the sort order and I do not see an
option in the PDF user file. However, sometimes there are
undocumented options so I thought I would ask. (I know the
user can sort by clicking on the title block, but it would be
very nice to have it pre-sorted. )
Bob,
First, what version and build of Plugin are you using?
If you are using the latest version of Plugins, use the
un-documented "SORT_FILES" option to achieve your goal.
Here's how:
-- Example 01
-- LoadFileNamePlusPlus_SortByName.RMD
-- A. Razzak Memon
-- 10-10-2010 10:10:10 AM
CLS
PLUGIN LoadFileNamePlusPlus.RBL 'vResult +
|MULTISELECT ON +
|TITLE Select File +
|VIEW_MODE DETAILS +
|SORT_FILES BY_NAME +
|FILTER MS Word Files (*.rtf, *.doc, *.docx)#*.rtf;*.doc;*.docx'
RETURN
-- Example 02
-- LoadFileNamePlusPlus_SortBySize.RMD
-- A. Razzak Memon
-- 10-10-2010 10:10:10 AM
CLS
PLUGIN LoadFileNamePlusPlus.RBL 'vResult +
|MULTISELECT ON +
|TITLE Select File +
|VIEW_MODE DETAILS +
|SORT_FILES BY_SIZE +
|FILTER MS Word Files (*.rtf, *.doc, *.docx)#*.rtf;*.doc;*.docx'
RETURN
-- Example 03
-- LoadFileNamePlusPlus_SortByType.RMD
-- A. Razzak Memon
-- 10-10-2010 10:10:10 AM
CLS
PLUGIN LoadFileNamePlusPlus.RBL 'vResult +
|MULTISELECT ON +
|TITLE Select File +
|VIEW_MODE DETAILS +
|SORT_FILES BY_TYPE +
|FILTER MS Word Files (*.rtf, *.doc, *.docx)#*.rtf;*.doc;*.docx'
RETURN
-- Example 04
-- LoadFileNamePlusPlus_SortByModified.RMD
-- A. Razzak Memon
-- 10-10-2010 10:10:10 AM
CLS
PLUGIN LoadFileNamePlusPlus.RBL 'vResult +
|MULTISELECT ON +
|TITLE Select File +
|VIEW_MODE DETAILS +
|SORT_FILES BY_MODIFIED +
|FILTER MS Word Files (*.rtf, *.doc, *.docx)#*.rtf;*.doc;*.docx'
RETURN
-- Example 05
-- LoadFileNamePlusPlus_SortByAttributes.RMD
-- A. Razzak Memon
-- 10-10-2010 10:10:10 AM
CLS
PLUGIN LoadFileNamePlusPlus.RBL 'vResult +
|MULTISELECT ON +
|TITLE Select File +
|VIEW_MODE DETAILS +
|SORT_FILES BY_ATTRIBUTES +
|FILTER MS Word Files (*.rtf, *.doc, *.docx)#*.rtf;*.doc;*.docx'
RETURN
{Resulting Variables
vResult = OK TEXT
vLFNFileCount = 1 INTEGER
vLFNFileName1 = C:\RBTI\RBG90_64\Tutorial.docx TEXT
vLFNFilePath1 = C:\RBTI\RBG90_64\ TEXT
vLFNFileNameS1 = Tutorial.docx TEXT
vLFNFileExt1 = .docx TEXT
vLFNFileDT1 = 10/10/2010 10:10:10 AM TEXT
vLFNFileSize1 = 7745873
}
Very Best R:egards,
Razzak.