[Gambas-user] Settings file - preserver comments

Bruce Steers bsteers4 at gmail.com
Mon Feb 8 14:25:02 CET 2021


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.
>
>
> Regards
>
> Chris
>
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210208/01cc1f72/attachment.htm>


More information about the User mailing list