New topic: File embedded in project causes Nil object when referenced
<http://forums.realsoftware.com/viewtopic.php?t=34195> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message rebrandsoftware Post subject: File embedded in project causes Nil object when referencedPosted: Wed Jun 09, 2010 1:42 pm Joined: Wed Mar 25, 2009 4:30 pm Posts: 87 Location: Alexandria, VA, USA Hello Everyone, I feel like I've been asking a lot of questions lately, sorry to be a pain. I've been developing Web TV application on Windows and I have a database file that I have dragged into the IDE to embed it in the project. The database is named "TV". I can reference it on Windows like this: Code: dim sql as string dim rs as RecordSet sql = "select * from tblChannels" rs = TV.SQLSelect(sql) However, when I remote debug to Mac or Linux I get a Nil Ojbect Error on the SQLSelect line, as if it can't find the "TV" database that is supposedly embedded in the project. Any idea why this would happen? I have searched the forums/language reference but could not find a solution. My intent is to distribute the database embedded within the project to avoid installers. -Mike 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]
