finishEnterFun() and doneProc() callback

S

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
 
In article <1146494843.237271.128610@g10g2000cwb.googlegroups.com> "SS" <ssriramiyer@gmail.com> writes:
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
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
(phz@seeheader.nospam)

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

-Jules de Gaultier
 
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 ?
 
In article <1146512879.966620.13580@j33g2000cwa.googlegroups.com> "SS" <ssriramiyer@gmail.com> writes:
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 ?
Don't delete the pointsList. By doing so you are resetting the enterfunction.
That's why it keeps starting over.

-Pete Zakel
(phz@seeheader.nospam)

"Maybe I'm lucky to be going so slowly, because I may be going in the
wrong direction."
-Ashleigh Brilliant
 
Pete,
Tried it. It does'nt work. Should I be using the
changeNextEnterFun(). If yes how should I use it.


Thanks,
Sriram
 
In article <1146589607.788566.17370@i40g2000cwc.googlegroups.com> "SS" <ssriramiyer@gmail.com> writes:
Tried it. It does'nt work. Should I be using the
changeNextEnterFun(). If yes how should I use it.
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
(phz@seeheader.nospam)

"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."
 
In article <4457f690$1@news.cadence.com> pxhxz@cadence.com (Pete nospam Zakel) writes:
In article <1146589607.788566.17370@i40g2000cwc.googlegroups.com> "SS" <ssriramiyer@gmail.com> writes:
Tried it. It does'nt work. Should I be using the
changeNextEnterFun(). If yes how should I use it.

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.
What would be most helpful is a code sample to see what you are actually
doing.

-Pete Zakel
(phz@seeheader.nospam)

"If God had not given us sticky tape, it would have been necessary to
invent it."
 

Welcome to EDABoard.com

Sponsor

Back
Top