From: Shannon Fang Date: 2002-12-06T11:30:47+09:00 Subject: Re: on error resume next Hi, On Fri, 6 Dec 2002 02:26:40 +0000 (GMT) ahoward wrote: > > I tried to do the following: (peudo-code) > > > > def test > > begin > > conn=adodb.connection > > conn.open ... > > if conn!=nil then > > #add data to db > > else > > #add data to file > > end > > rescue DBError > > conn=nil > > resume next > > end > > end > > i don't quite understand this... the next WHAT? where is the implied loop > supposed to be? The benefit of resume next is that it will catch all errors. Here, I expect error to happen on the conn.open statement., so if error happen, set conn=nil. shannon