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?

Thanks muchly :)

Will

------------------------------------------------------------------------------------------------
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]

Reply via email to