How to go through flowchart during runtime

Hi,

I would like to go through a flowchart a user created at runtime. I would like to be able to 'valodate' the created flowchart.

Could you give a small example on how to go from a block to the next connected block(s) for example? The rest I will figure out myself.

I'm using Delphi 10.4.2

Thanks, Rene

Hi,

Can you elaborate a bit more in detail please? Do you want to select or highlight a block? Like a status?

Hi Pieter,

I would like to start at the first block in the flowchart and follow the flow through the links to be able to validate if the flow is ok.

Let say I have a flowchart with an actionblock linked to actionblock2, then linked to an decisionblock etc. I would like to know how I can go through the flow by coding.

Hi,

With each connection added, an OnElementSelect event is called. There you can check which element is added. You can validate the elements there and then potentially delete it or change it afterwards.

Thanks Pieter,

That should be enough to achieve what I want..

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.