New topic: Not handling the nlobject exception error
<http://forums.realsoftware.com/viewtopic.php?t=33309> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message phil2008 Post subject: Not handling the nlobject exception errorPosted: Thu Apr 08, 2010 9:00 am Joined: Mon Dec 31, 2007 10:06 pm Posts: 63 This is not catching the nlobject exception error. I am using Realbasic 2009 R3 Dim f as Folderitem Dim dp as string dp = dbpath.text ' Check and see if all the textboxes have not been left empty if len(dbpath.text)<5 or len(dbuser.text)<2 or len(dbpassword.text)<3 or len(dbadmin.text)<2 or len(dbadminpw.text)<3 then msgbox ("You do not configure the program right!") exit sub else ' Check and see if the database exist. try f=getfolderitem(dp+"logs.mdb") if not f.Exists then ' logs.mdb file does not exist msgbox ("The logs.mdb file is missing.") exit sub end if Catch err as NilObjectException MsgBox "You have incorrect path or one of the files is missing." end try Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 1 post ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
