Remove a toolbar in Notes 8.0 via Lotusscript : bug?

Dear All,

I have written a program whose aim is to remove toolbar previously created in Notes bookmark database.

My code is the following:

********* START OF CODE *********

'remove the toolbar entry

Dim outline As notesoutline

Dim outlineentry As notesoutlineentry

Set outline = bookmarkdb.getoutline(“UserToolbar”)

Set outlineentry = outline.GetFirst()

While Not outlineentry Is Nothing

If (outlineentry.Label="ToolbarName") Then 

	outlineentry.IsHidden = True

	Call outline.RemoveEntry(outlineentry)

	Call outline.Save()

Else

	Set outlineentry = outline.GetNext(outlineentry)

End If

Wend

Call outline.Save()

Msgbox “Removal complete! Please restart Lotus Notes”, 0, “Toolbar Installer”

********** END OF CODE **********

With Notes 6.5 and 7 : no problem : the toolbar is removed and when restarting Notes, all is OK.

BUT with Notes 8, it does not work properly. After code execution, the outlineentry is removed. But when restarting Notes, the outlineentry is recreated and the toolbar appears again in Notes.

I have noticed the following point:

if I hide the toolbar before executing the code, all works fine in Notes 8 : the outlineentry is not regenerated.

Is it a bug of 8.0? Do you have any workaround? Have I made something wrong in my code?

Thanks a lot for your helpful answers.

Mikaël Donini, Arkadin, France.

Subject: Found the solution …

It is the interaction between Notes and Domino Designer that provokes this strange behaviour. It is not linked to the version 8 of Notes.

Closing the designer and running Notes alone makes my code OK.

Thanks.