CommandState.visible issue in VB

93 views
Skip to first unread message

kei...@gmail.com

unread,
Dec 19, 2012, 9:42:26 PM12/19/12
to mode...@googlegroups.com
With the vb code below I get the following error on the last line.  'visible' is ambiguous because multiple kinds of members with this name exist in class 'ModelText.ModelEditToolCommands.CommandState'.

        Dim cmdSaveState As CommandState
        cmdSaveState = TooledControl1.modelEdit.toolContainer.getCommandState(CommandInstance.commandSave)
        cmdSaveState.visible = False

With objectbrowser it shows that CommandState has two events but no properties. Am I missing something?

Keith

Christopher Wells

unread,
Dec 25, 2012, 6:55:49 AM12/25/12
to mode...@googlegroups.com, kei...@gmail.com
Hi Keith,

Unfortunately, in that class I have a "visible" property, but I also defined a delegate type named "Visible".

That's a problem for VB, because VB is case-insensitive. I hadn't noticed it, because I use C#.

I'd like to fix that in the next release, but I'm a bit busy this week with Christmas visitors etc.

Chris
Reply all
Reply to author
Forward
0 new messages