Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3798

Problem NILOBJECT Files

$
0
0

Hello all.

I have a project with a pre-built copyfiles

I have created an APP with propierty DBSourceDisk as SQLiteDatabase

On my copyfiles I have only 1 copy for a file called SMT.sqlite

Then on app opening I’m doing this

Var myFile As FolderItem = SpecialFolder.Resource(“SMT.sqlite”)
If myFile.Exists Then
Var destFile As FolderItem = SpecialFolder.Documents.Child(“SMT.sqlite”)
If destfile.Exists Then
App.DBSourceDisk.DatabaseFile = destfile
else
myFile.CopyTo(destFile)
App.DBSourceDisk.DatabaseFile = destfile
end if

The App.DBSourceDisk.DatabaseFile = destfile generates a NilObjectException

Debugger indicates that source exist.

How can I solve this?

Same with SpecialFolder.ApplicationSupport

6 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 3798

Trending Articles