[Gambas-user] Issue 102 in gambas: (Minor) help error for Settings array write

gambas at ...2524... gambas at ...2524...
Tue Sep 6 06:44:54 CEST 2011


Status: New
Owner: ----
Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any  
Desktop-Any GUI-Any

New issue 102 by adamn... at ...626...: (Minor) help error for Settings array  
write
http://code.google.com/p/gambas/issues/detail?id=102

1) Describe the problem.
This is pretty minor, but the help for Settings array write says

"hsettings [ Key as String [ , Default As Variant ] ] = aVariant"

but

   Settings["Cow","milk"] = "coffee"

fails at run time with a "Too many arguments" error.




(This is a bit of a shame actually, because it would have been a cool way  
to set a default setting if the assignee is null, as in the case where the  
setting
is being set from say a user control and the user enters nothing. Like in

   Settings["Cow","milk"] = FMyCowSetting.Text

Such is life! )

2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate):
N/A

3) Provide a little project that reproduces the bug or the crash.
N/A

4) If your project needs a database, try to provide it, or part of it.
N/A

5) Explain clearly how to reproduce the bug or the crash.
N/A







More information about the User mailing list