finishEnterFun() and doneProc() callback

Discussion in 'Cadence' started by SS, May 1, 2006.

  1. SS

    SS Guest

    finishEnterFun() in doneProc() of a enterpath function does'nt work.
    However I can explicitly call finishEnterFun(). So how do I complete
    the enterPath ? After the doneProc() is called I want the function
    to quit rather than asking the user to enter the next point

    thanks,
    Sriram
     
    SS, May 1, 2006
    #1
  2. SS

    SS Guest

    Yes Iam deleting the pointsList by setting the form->points to nil.
    No Iam not calling the changeNextEnterFun(). How can I use this in this
    context ?
     
    SS, May 1, 2006
    #2
  3. SS

    Guest Guest

    Yes, the documentation specifically says: "Do not call finishEnterFun or
    cancelEnterFun from within any of the callback procedures."

    What are the arguments you are giving to enterPath()?

    Are you calling changeNextEnterFun() at any point? Are you deleting the
    points from pointList() in the doneProc()? Are you modifying the points so
    the last two points aren't identical?

    -Pete Zakel
    ()

    "Imagination is the one weapon in the war against reality."

    -Jules de Gaultier
     
    Guest, May 1, 2006
    #3
  4. SS

    Guest Guest

    Don't delete the pointsList. By doing so you are resetting the enterfunction.
    That's why it keeps starting over.

    -Pete Zakel
    ()

    "Maybe I'm lucky to be going so slowly, because I may be going in the
    wrong direction."
    -Ashleigh Brilliant
     
    Guest, May 2, 2006
    #4
  5. SS

    SS Guest

    Pete,
    Tried it. It does'nt work. Should I be using the
    changeNextEnterFun(). If yes how should I use it.


    Thanks,
    Sriram
     
    SS, May 2, 2006
    #5
  6. SS

    Guest Guest

    No, you should not be using changeNextEnterFun().

    If you aren't clearing the points list, then it should be finished once you
    exit the doneProc unless something else is going on.

    -Pete Zakel
    ()

    "You must realize that the computer has it in for you. The irrefutable
    proof of this is that the computer always does what you tell it to do."
     
    Guest, May 3, 2006
    #6
  7. SS

    Guest Guest

    What would be most helpful is a code sample to see what you are actually
    doing.

    -Pete Zakel
    ()

    "If God had not given us sticky tape, it would have been necessary to
    invent it."
     
    Guest, May 3, 2006
    #7
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 (here). After that, you can post your question and our members will help you out.