applyEnterFun
applyEnterFun( [g_form] ) =>t / nil
Description
Calls doneProc, passes it the points you entered, resets the enterfunction, and calls initProc.
This function does not return from the active enterfunction.
applyEnterFun can be used in conjunction with doneProc to allow you to enter many shapes without having to start another enterfunction.
Argument
Values Returned
Examples
Displays the prompt First in the CIW. Enter point p1. The prompt changes to “Next.” Enter p2 and p3.
procedure(donePoints( w done pts)
if( done then
printf("Points = %L\n" pts)
else
println("Point entry aborted.")
)
)
enterPoints(
?prompts list("First" "Next") ?doneProc"donePoints")
applyEnterFun( )
The enterfunction is not terminated, the prompt changes back to “First,” and “Points = ( p1 p2 p3 )” is printed out. Now enter points p4, p5, and p6, followed by
finishEnterFun( )
The enterfunction is terminated, the prompt goes away, the message “Points = ( p4 p5 p6 )” is printed out, and ( p4 p5 p6 ) is returned.
Related Topics
Return to top