At 10:42 PM 4/6/2005, Chuck Finley wrote:
I have a need to capture file names (to process in rbase) from a
designated directory. The names will always be a static format and
length, but will change (file0001.txt , file0002.txt...). Only files
that need processing will be in the directory. My thought was to:
output tempfile.txt
dir
output scr
use the gateway command to import into a temporary table and use
declare cursor and (sget(.vTemp) to capture the filenames. Is there
a better way? I'm always afraid that I've missed a function that will
do what I want very easily.
Chuck,
A few suggestions:
01. Use the File ListBox Control (part of File System Controls) in
Form Designer to create a nice interface to achieve your goal.
Form Designer | File System Controls | File ListBox Control ...
02. Use the #LFILES option of the CHOOSE command to manage the list
as well as the selection of given file(s).
HELP CHOOSE
03. Use the LoadFileName.RBL or LoadFileNamePlus.RBL PLUGINs to manage
the entire goal of capturing and managing files.
http://www.razzak.com/fte (From The Edge:)
http://www.razzak.com/sampleapplications (Sample Applications)
Hope that helps!
Very Best R:egards,
Razzak.