You could use CFTRY / CFCATCH. In the CFCATCH, either do nothing or
report the error.
-David
On Wed, 18 Oct 2000 13:18:32 +0100 "W Luke" <[EMAIL PROTECTED]>
writes:
> Hi.
>
> I'm looping through a Registry Entry, and inserting the String Names
> into a
> Database.
>
> However, one or 2 of the Entries generate an error because the Key
> doesn't
> exist. How can I avoid generating these errors? I've listed my
> code below
> if that's any help:
>
> <cfoutput query="Windows">
>
> <cfregistry action="GetAll" branch="<long key here>\#entry#\Users"
> type="Any" name="users" sort="Type ASC, Entry ASC">
> <cfquery name="dumpusers" datasource="will">
> INSERT into Users (User,Realm)
> VALUES ('#users.Entry#','#Windows.Entry#')
> </cfquery>
> </cfoutput>
>
> It's getting stuck when it tries to connect to a Registry Key that
> doesn't
> have '\Users' appended to it. Should I be looking at a customised
> Error
> page for my App, or something else?
________________________________________________________________
YOU'RE PAYING TOO MUCH FOR THE INTERNET!
Juno now offers FREE Internet Access!
Try it today - there's no risk! For your FREE software, visit:
http://dl.www.juno.com/get/tagj.
------------------------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message
with 'unsubscribe' in the body to [EMAIL PROTECTED]