In my application, I have the following code to define the location of a database file depending on what platform the app is running on:
Dim dbFile as FolderItem
#if TargetLinux or TargetMacOS
dbFile = GetFolderItem(SpecialFolder.UserHome.Child(".config").Child(“MyApplication”).Child(“mydb.db”))
#endif
For some reason, when I try to compile, the line of code assigning the value of dbFile throws an error that says that “the parameters are not compatible with this function”. I’m assuming that I’m passing something wrong or need to append something to my SpecialFolders statement but I’m lost. What is the appropriate way to do the assignment above?
Thanks!
Dave