Post Reply 
PRINT(); command weird behavior.(SOLVED).
03-24-2015, 06:42 PM
Post: #3
RE: PRINT(); command weird behavior.
The LOCAL declaration needs a comma separator:

LOCAL me, OP;

Otherwise a wait(-1); for the terminal screen to display me:

Code:

EXPORT test()
BEGIN
LOCAL me,OP;

me:="To find the shortest distance between a point and a line, you need to provide one of the following data sets:
1) Ax+By+C=0 & P(x₀,y₀)
2) y=mx+b & P(x₀,y₀)
3) P1(x₁,y₁),P2(x₂,y₂) & P(x₀,y₀).";

PRINT();
PRINT(me);
wait(-1);

CHOOSE(OP,"I Have...",{"Ax+By+C=0 & (x₀,y₀)","y=mx+b & P(x₀,y₀)","P1(x₁,y₁),P2(x₂,y₂) & P(x₀,y₀)"});
END;
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: PRINT(); command weird behavior. - Han - 03-24-2015, 06:23 PM
RE: PRINT(); command weird behavior. - DrD - 03-24-2015 06:42 PM



User(s) browsing this thread: 1 Guest(s)