Phillip,
Assuming the page numbers are the first thing on the line and only 3
characters long???
<select name="filelist" size="5" multiple>
<CFLOOP var="results" delimiters="#CHR(13)##CHR(10)#"
INDEX="OneLineAtATime">
<CFSET variables.PAGE_number=left(Variables.OneLineAtATime,3)>
<option
value="#variables.page_number#">#variables.page_number#</option>
</CFLOOP>
</SELECT>
Just grab the first 3 as you loop through each line.
Hope this helps.
Galen
PS As normal, code was not tested :P
----- Original Message -----
From: "phumes1" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 03, 2002 5:59 AM
Subject: Create drropdown selection from external files
> Hi,
>
> I have the following list from an external file that is being creating
with
> the <cfexecute tag.
> What I would like to do (but not sure how) is to grab the page numbers
from
> the list ONLY and include them in the <select tag.
>
> Here is a snippet from the external file. This could be a few lines or a
> few hundred. Depends on the job.
>
> external file being read in with
>
> <cffile action="READ"
> file="#TheFolder#\page-results.log"
> nameconflict="OVERWRITE"
> variable="results">
>
>
> = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
> S U M M A R Y O F F O L I O S / L E A D
> = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
> 001>folio: 165 . . . 011.50 points free
> 002>folio: 166 . . . 007.00 points free
> 003>folio: 167 . . . 019.00 points free
> 004>folio: 168 . . . 006.00 points free
> 005>folio: 169 . . . 008.00 points free
> 006>folio: 170 . . . 021.00 points free
> 007>folio: 171 . . . 033.00 points free
> 008>folio: 172 . . . 013.00 points free
> 009>folio: 173 . . . 005.00 points free
> 010>folio: 174 . . . 019.00 points free
> 011>folio: 175 . . . 026.00 points free
> 012>folio: 176 . . . 013.00 points free
> 013>folio: 177 . . . 016.00 points free
> 014>folio: 178 . . . 021.00 points free
> 015>folio: 179 . . . 003.50 points free
> 016>folio: 180 . . . 004.00 points free
> 017>folio: 181 . . . 004.00 points free
> 018>folio: 182 . . . 006.00 points free
> 019>folio: 183 . . . 017.00 points free
>
>
> Here is my select
>
> <select name="filelist" size="5" multiple>
> <option value="file">#page_number#</option>
> </select>
>
>
>
>
>
+---------------------------------------------------------------------------
--------+
>
> Philip Humeniuk
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
>
+---------------------------------------------------------------------------
---------+
>
>
>
> -------------------------------------------------------------------------
> This email server is running an evaluation copy of the MailShield anti-
> spam software. Please contact your email administrator if you have any
> questions about this message. MailShield product info: www.mailshield.com
>
> -----------------------------------------------
> To post, send email to [EMAIL PROTECTED]
> To subscribe / unsubscribe: http://www.dfwcfug.org
-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com
-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org