From: ahoward Date: 2002-12-06T11:26:44+09:00 Subject: Re: on error resume next On Fri, 6 Dec 2002, Shannon Fang wrote: > I'm sorry I don't understand why $on_error...? Is it mean Global var? > again, ... symbol... yup. > 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? -a -- ==================================== | Ara Howard | NOAA Forecast Systems Laboratory | Information and Technology Services | Data Systems Group | R/FST 325 Broadway | Boulder, CO 80305-3328 | Email: ahoward@fsl.noaa.gov | Phone: 303-497-7238 | Fax: 303-497-7259 ====================================