Dr. R,
Why would some code fail during a trace, but work during a run?

Michael


On Feb 21, 2010, at 9:27 PM, "A. Razzak Memon" <[email protected]> wrote:

At 08:26 PM 2/21/2010, Michael J. Sinclair wrote:

Is there a way to use these plugins to retrieve a filename
(even one at a time, then I could use them within a loop
to get each filename) without the user having to click on
each filename?

Michael,

You can definitely achieve that goal and more ... using the
LoadFileNamePlusPlus.rbl Plugin. This Plugin will return a
list of variable values after a file or files are selected.

Here's how ...

Syntax:

PLUGINS LoadFileNamePlusPlus.rbl VarName|<options>

Supported Options:

FULLPATH (ON/OFF)
TITLE <value>
VIEW_MODE <value>
THUMBNAILS
TILES
ICONS (Default)
LIST
DETAILS
FILTER <value>
INITIAL_DIR <value>
NO_CHANGE_DIR (ON/OFF)
MULTISELECT (ON/OFF)
SHOW_HIDDEN (ON/OFF)
NO_LONG_NAMES (ON/OFF)
NO_NETWORK_BUTTON (ON/OFF)
HIDE_READ_ONLY (ON/OFF)
NO_DEREFERENCE_LINKS (ON/OFF)
DONT_ADD_TO_RECENT (ON/OFF)
ENABLE_SIZING (ON/OFF)
OLD_STYLE (ON/OFF)
NO_VALIDATE (ON/OFF)
OK_BUTTON_CAPTION <value> - to change "OK" button caption
CANCEL_BUTTON_CAPTION <value> - to change "CANCEL" button caption

Where:

VarName is the variable name to return text results

Returned Variables:

vLFNFileCount  = 1 INTEGER
vLFNFileName1  = C:\RBTI\RBG76\Samples\RRBYW15\List_I0002.jpg TEXT
vLFNFilePath1  = C:\RBTI\RBG76\Samples\RRBYW15\ TEXT
vLFNFileNameS1 = List_I0002.jpg TEXT
vLFNFileExt1   = .jpg TEXT
vLFNFileDT1    = 2/21/2010 9:15:00 PM TEXT
vLFNFileSize1  = 5018 INTEGER

With multiple files selected, similar set of dynamic variables will
be defined. The last character (nn) of each variable will correspond
to appropriate file.

Notes:

Each parameter must be separated by the pipe "|" symbol. A value
of '[Esc]' will be returned if clicked on [Cancel] button or Close
Window [x] option of file-selection dialog.

The LoadFileNamePlusPlus.rbl is part of R:BASE Plugin Power Pack.

Very Best R:egards,

Razzak.




Reply via email to