Here is an old post yith exactely the same topic ;)
_______________________________________________
Hi,

I`ve done this with the help of this great list by this way:

(1): make a .bat like this
c:
cd \xxxx your directory here xxxx
dir /o:n /b *.gif > gif.txt

(2) call this .bat file wirth an external action in your taf or tcf

(3) use an file action to put the file content in a variable

(4) transform this variable into an array: i do it like this

<@ASSIGN NAME=ArrayGif VALUE='<@ARRAY VALUE=<@REPLACE STR=<@VAR listegif
ENCODING=MULTILINEHTML> FINDSTR="<BR>" REPLACESTR=";">>' SCOPE=LOCAL>
_______________________________________________

But you should use the @@Local$ResultSet just after the external call and
remove the file redirection of the batch ('dir /b > file.txt' should become
only 'dir /b'), so you avoid (3) and (4)
I was somewhat complicated soul when I've posted this...

Don't forget to remove the first(s) cells of the @@Local$ResultSet that
sometimes contain some data that you don't yant in your array (depends of
the instruction called)

Hope this help

Gauthier


----- Original Message -----
From: "John Newsom" <[EMAIL PROTECTED]>
To: "Multiple recipients of list witango-talk" <[EMAIL PROTECTED]>
Sent: Friday, May 03, 2002 2:49 PM
Subject: Witango-Talk: directory listing


> I am pumped about the rtf method of populating word documents with
databased
> data.  I am using it to populate student progress report forms.  Very very
> slick.  Now I would like to automatically populate a drop down box with
the rtf
> files available in a particular directory.  I have searched the list
archives on
> the witango site, and the method proposed in one post was to write a batch
file
> that does a directory listing and then use the extrenal action to call the
batch
> file, and access the resultset.  I could use the choicelist tag then to
display
> the resultset as a drop down list.  Is this still the method of choice?
>
> Also, my hard drive crashed, alas, and I have lost my  book marks to the
various
> list archives.  I have Ben's site, but the search doesn't seem to be
working.
> Also, the witango site.  But I thought there was another one with the
complete
> archives.  Can some one help?
>
> Thanks,
>
> John Newsom
>
> ________________________________________________________________________
> TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
>                 with unsubscribe witango-talk in the message body

 
______________________________________________________________________________
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


________________________________________________________________________
TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
                with unsubscribe witango-talk in the message body

Reply via email to