How do I call a specific location using GetFolderItem() and SpecialFolder

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

what are you doing? passing a folderitem to GetFolderItem? That will not work.

simply leave it away:

dbFile = SpecialFolder.UserHome.Child(".config").Child(“MyApplication”).Child(“mydb.db”)

Thank you, Christian! That makes a lot of sense. I should have thought about what I was doing there! Many thanks!