[Gambas-user] Problems with Settings in Gambas 1.9.9
ML
ml at ...973...
Fri Jun 10 11:56:16 CEST 2005
On 07/06/2005 15:20, ML wrote:
> On 07/06/2005 12:51, Benoit Minisini wrote:
[snip]
>> Everything seems to work fine there. Can you send me your project ?
>
>
>
> Well, actually the project is not a project :-), it is just a test composed
> of one form, one button and this sub:
>
> PUBLIC SUB Button1_Click()
>
> DIM s AS Settings
>
> s = NEW Settings("/home/piero/prova.ini")
>
> message(s["Test/Chiave1"])
>
> END
>
> The prova.ini file looks simply like this:
>
> [Test]
> Chiave1=pippo
I think I got this too.
Differently from Windoze-style ini files, strings must necessarily be enclosed
in quotes, otherwise Settings tries to convert it to Integer and the error
comes up.
No big deal though :-)
Regards,
Piero
More information about the User
mailing list