I’m trying to open and launch a default user Sqlite database file while the application starts without a Open Dialog. The GetFolderItem(filter) expects a string for the path but it gets a class FolderItem. I even tried creating a string property sFile for the Directory filter but it didn’t like that either. How do I make Filter be a string instead of a FolderItem?
[code]Dim dbFile As FolderItem
//result=GetOpenFolderItem(filter) result is Foleritem, Filter is String
// Filter Expect type string but gets class folderitem
dbFile = GetOpenFolderItem(SpecialFolder.Documents.Child(“AppName”).Child(“User Files”).Child(“DefaultUser.sqlite”)) //<-- Here
db = New SQLiteDatabase
db.DatabaseFile = dbFile
If db.Connect Then
OpenedFile = dbFile.DisplayName
frmGAmain.LabelGroups
Else
MsgBox("Error: " + db.ErrorMessage)
End If[/code]