Mark
Have you looked at UML, This may be an oblique
answer but 'activity' diagrams will help
The UML Tool i'm using is minUML (from www.minuml.com ) is pure Delphi (and will have
Delphi Web Script scripting)
If you are getting repeated calls in the else then
your process flows are wrong (making decision a ahead of b or not
combining
your decisions logic correctly, UML activity diagrams are like flowcharts but have 'forks' and
'joins' which help in modeling this
example
if you have 2 binary forks (hard to express in
text) but you have 4 outcomes (but only 3 decisions), coded in if then else
you get (pseudo code)
if conda
then
if condb then proc1()
else proc2()
else
if condb then
proc3()
else proc1()
you are using 2 binary decisions to get 3 outcomes,
A solution I saw once from the Mark Edington? (borlands
ADOExpress architech)
for this was (and I would never thought of it) pls
excuse any syntax errors
const
Decision: array[boolean,boolean] of Int =
((1,2),(3,1));
case Decision[conda,condb] of
1: proc1()
2: proc2()
3:
proc3() end
HTH
Neven
|
- [DUG]: Help with Logic flows Mark Howard
- Re: [DUG]: Help with Logic flows Paul Lowman
- RE: [DUG]: Help with Logic flows Steve Peacocke
- RE: [DUG]: Help with Logic flows Neven MacEwan
- RE: [DUG]: Help with Logic flows Chris Reynolds
- Re: [DUG]: Help with Logic flows Paul Mostek
- [DUG]: CORBA/MIDAS x SQL SERVER 2000 Paul Mostek
- Re: [DUG]: Help with Logic flows Robert Martin
- Re: [DUG]: Help with Logic flows Mark Howard
- Re: [DUG]: Help with Logic flows Robert Martin
- RE: [DUG]: Help with Logic flows James Sugrue
- RE: [DUG]: Help with Logic flows Ross Levis
- Re: [DUG]: Help with Logic flows Steve Peacocke
- Re: [DUG]: Help with Logic flows Neven MacEwan