[Gambas-user] Private settings file question
Bruce
adamnt42 at gmail.com
Sat Dec 5 14:26:25 CET 2020
On 5/12/20 9:56 pm, KKing wrote:
> So I want to have a private application configuration file in a set
> location of my choosing (i.e. not in ~/.config/Gambas)
> A simplified test of what I attempted is below but does not appear to work.
> There is no conf file to start with (I want to have a UI to request the
> settings to save)
> When I run the below, there are no errors, but there is no conf file is
> created either?
>
>> Dim confFile As Settings
>> Dim strConfFile as String
>> Dim strImageFilesPath as String
>> Dim varTest01 as Variant
>> strConfFile = "/home/user01/TestSettings.conf"
>> confFile = New Settings(mCore.gstrConfFile)
>> strImageFilesPath = confFile["UserPreferences/ImageFilesPath", Null]
>> If IsNull(strImageFilesPath) Then
>> strImageFilesPath = "/media/external01/Images"
>> varTest01 = confFile["UserPreferences/ImageFilesPath",
>> strImageFilesPath]
>> Endif
>> confFile.Save
>
confFile = New Settings(mCore.gstrConfFile)
at line 6 - Di you mean
confFile = New Settings(gstrConfFile)
b
More information about the User
mailing list