Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Finding boxes (Read 2382 times)
maries
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: Jun 26th, 2008
Finding boxes
Jun 26th, 2008 at 2:24am
Print Post  
hi stoyan,
im using the FlowChartX control, version 3.2.3. i would like to ask how to find a box in the flowchart, containing 50 boxes with different text,the unique box with the text "hello".

help please.... ??? Cry


thanks and more power!
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Finding boxes
Reply #1 - Jun 26th, 2008 at 4:20am
Print Post  
Hi,

There isn't any built-in method to find boxes by their Text, but it should be easy to implement it on your own, for example:

Code
Select All
Function FindBoxByText(s as String) as Box
	var b as Box
	for each b in fcx.Boxes
		if b.Text = s then return b
	next
	return nothing
End Function
 



I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
maries
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: Jun 26th, 2008
Re: Finding boxes
Reply #2 - Jul 9th, 2008 at 8:27am
Print Post  
Dear Stoyan,

i tried your suggested lines for a couple of days already, but i just cant do it in visual basic 6. if you have an idea about this,im humbly asking your help..

i'll be using this for my thesis. my thesis is about making the course curriculum into a flowchart.


im hoping for any help from anybody... just a novice. thanks Kiss

yours,
maries Cry
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Finding boxes
Reply #3 - Jul 9th, 2008 at 10:05am
Print Post  
Try this:

Code
Select All
Function FindBoxByText(s As String) As box
	Dim b As box
	For Each b In fcx.boxes
		If b.Text = s Then
			Set FindBoxByText = b
			Exit Function
		End If
	Next
	Set FindBoxByText = Nothing
End Function
 



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