[Gambas-user] Am I misunderstanding settings.clear?

Willy Raets willy at ...2734...
Mon Oct 7 23:28:58 CEST 2013


Hi all,

I've been working with settings quite a while now.
Today I realised some settings where placed under a new key a while ago.
So I looked at the documentation to see if I could remove the old ones.

Documentation said...YES

------ Gambas Docs on settings.clear ------
Sub Clear ( [ ParentKey As String ] )

Clears all settings.

If ParentKey is specified, then only the keys under it will be cleared. 

------- END Gambas docs -------

So I gave it a try, (wanting to remove everything below the 'mail' key)
as follows:

Settings.Clear["mail"]

but...
Compiler said ... NO
'This expression cannot be a statement' was the message

Also tried Settings["mail"].Clear
That did compile but at runtime...

Interpreter said... NO
'Not an object' was the message.

What am I doing wrong?!...

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org








More information about the User mailing list