Photo_G_84660
Sep 05, 2006Nimbostratus
VB .NET nodeDisable sub
Hi,
I am trying to code a disableNode sub-procedure in VB .NET, and I am getting this error:
"Value of type 'App_Based_Node_Handler.NodeAddress.CommonEnabledState' cannot be converted to '1-dimensional array of App_Based_Node_Handler.NodeAddress.CommonEnabledState'."
Here is the sub:
Sub disableNode()
Dim sNodeAddress = txtNodetoDisable.Text
Dim state As NodeAddress.CommonEnabledState
state = App_Based_Node_Handler.NodeAddress.CommonEnabledState.STATE_DISABLED
Dim configure = Node.set_session_enabled_state(sNodeAddress, state)
Along with the error, the compiler highlights the 'state' variable at the end of the last line, and I cannot seem to figure out what I am doing wrong.
Can anyone clarify this error for me?
Thanks in advance,
Scott H.