[Gambas-user] Settings file - preserver comments
Bruce Steers
bsteers4 at gmail.com
Mon Feb 8 14:46:19 CET 2021
sorry to be more correct it should be this..
*Public mySettings As Settings ' a public global object*
*Public Sub From_Open()*
* mySettings = New Settings(Settings.Path, "My comment line here")*
*End*
On Mon, 8 Feb 2021 at 13:25, Bruce Steers <bsteers4 at gmail.com> wrote:
> you can set a comment line when calling Settings this way...
>
> *Dim mySettings As Settings*
> *mySettings = New Settings(Settings.Path, "My comment line here")*
>
> Then change all references to Settings["name"] to mySettings["Name")
>
> BruceS
>
>
> On Mon, 8 Feb 2021 at 07:42, pf <petterfilip at gmail.com> wrote:
>
>> Hi
>>
>>
>> I use a settings file but when i write to it the comments line made with
>> ; or # at the start of the line dissapears on update of any value.
>>
>> I would like to keep comments if the settings file is opened in a
>> texteditor so the user can get some tips on the values in the file.
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210208/264655ae/attachment.htm>
More information about the User
mailing list