Problem with go to

  • Thread starter Thread starter xavi garriga
  • Start date Start date
X

xavi garriga

Dears;

I have a problem in which I've spent some hours without finding the
solution. I've a big program with this structure more or less:

Do while ma>1
seq=ma2(.....)
ma = ma-1
Loop

Do while ma=1
seq=ma1(.....)
ma = ma-1
Loop

Do while mm>1
seq=mm2(.....)
mm = mm-1
Loop

Where ma2, ma1, mm2 are functions and this code is in a sub. ma2 gives me
the first result. This first result can affect the results of the other
functions, and depending on the results of ma1, mm2 maybe I've to come back
to the beggining of the problem. And I don't know how to do this "go to".

Can you help me please? If I have misexplained anything please, tell me.

Thanks and KR!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top