Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic About Function "FindNode" (Read 1168 times)
khstar
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 19
Joined: Apr 23rd, 2009
About Function "FindNode"
Apr 23rd, 2009 at 9:01am
Print Post  
I want to find some DiagramNodes which have specific Tag.
So, I tried to use FindNode Function.
From Guide, when finding Node fails, that function will return Nothing(null in C).
However When I use findnode like below, I just got error message.

if Diagraminstance.FindNode("SomeTag") = nothing  then
.....
end if

Message saids 'For MindFusion.Diagramming.DiagramNode, '=' operator is not defined'

How can I solve this problem?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: About Function "FindNode"
Reply #1 - Apr 23rd, 2009 at 12:30pm
Print Post  
I think VB.NET expects you to use the "is" operator. Try this:

if Diagraminstance.FindNode("SomeTag") Is Nothing  Then
...

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint