Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic I need help please! (Read 2447 times)
dimitris
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 1
Joined: Oct 13th, 2005
I need help please!
Oct 13th, 2005 at 5:45am
Print Post  
Hi all.I need to make a vb6 prog that saves the data from the nodes to an access2000 database table and then query the database and give me the results in the FlowChart.How can i do it?. Is there any sample code somewere?
Thanks in advance.
Dimitris ???
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: I need help please!
Reply #1 - Oct 13th, 2005 at 7:22am
Print Post  
Hi  Dimitris,

The flowchart does not provide intrinsic support for data binding. Your application must loop through all nodes and transfer their properties you are interested in to the database. When loading, create a box for each record in the recordset and transfer the recordset values to the box properties. We don't have any samples showing that, but it shouldn't be hard to implement, e.g.

dim b as box
for each b in fcx.Boxes
  rset.AddNew
  rset.("Text") = b.Text
  rset.("Tooltip") = b.Tooltip
  'etc
  rset.Update
next b

an loading would look like

rset.MoveFirst
do while not rset.EOF
  dim b as Box
  set b = fcx.CreateBox(...)
  b.Text = rset("Text")
  'etc
  rset.MoveNext
loop

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint