Hmm, 

I'm interested in this cos I'm using this sort of thing at the moment - but
what would be faster:

The processing time to run this code

or

The processing time involved to grab a default value from the database.

At the moment I have my db setup so that if an image is not submitted then
the column inserts a default path to a default image - like your
<cfelse><cfset imagesource="\IMAGES\EmployeeImages\Default.bmp"> code.

Should I be using your script or is the difference in picoseconds and so not
worth bothering with?



Rich Wild

-----Original Message-----
From: John Stanley [mailto:[EMAIL PROTECTED]]
Sent: 27 April 2000 13:04
To: [EMAIL PROTECTED]
Subject: What's the best way (Solution)



I figuired out a solution for my dilemna, and posted
it on Tuesday, but apparently it did not get through
to the list. Go figuire. Anyway here it is for all to
use, dissect, enjoy, blah blah blah..

<cfset temp='#get_data.UserID#'&'.jpg'>
<cfdirectory action="LIST"
directory="E:\InetPub\WWWRoot\Intra\IMAGES\EmployeeImages"
name="names">
        <cfset temp_list = ValueList(names.name)>
        <cfif ListContainsNoCase(temp_list, temp) is not 0>
<cfset imagesource="\IMAGES\EmployeeImages\#temp#">
        <cfelse>
<cfset
imagesource="\IMAGES\EmployeeImages\Default.bmp">
        </cfif>

Thanks alot for all of the suggestions. I hope this
code will help somebody somewhere.

John

__________________________________________________
Do You Yahoo!?
Talk to your friends online and get email alerts with Yahoo! Messenger.
http://im.yahoo.com/
----------------------------------------------------------------------------
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to