Post Reply 
help programming
03-22-2014, 05:49 PM
Post: #2
RE: help programming
(03-22-2014 05:43 PM)Arcturus314 Wrote:  So I wrote a program that is giving me a syntax error:

EXPORT PROG1(A,B,C)
BEGIN
LOCAL D=0;
LOCAL E=0;
(-B+SQUAREROOT(B^2-4AC))/(2A)->D;
(-B-SQUAREROOT(B^2-4AC))/(2A)->E;
MSGBOX(D,E);
END;

squareroot is replaced by the square root symbol in the code
So what is the problem?

I presume that -> is the actual store arrow. The problem (based solely on your source code) is that MSGBOX() only takes a single argument. You've separated D and E as two arguments and there is no such instance of MSGBOX() using two arguments. Instead, try: MSGBOX({D,E}).

Graph 3D | QPI | SolveSys
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
help programming - Arcturus314 - 03-22-2014, 05:43 PM
RE: help programming - Han - 03-22-2014 05:49 PM
RE: help programming - Ben Fairbank - 03-22-2014, 05:51 PM
RE: help programming - Arcturus314 - 03-22-2014, 05:51 PM
RE: help programming - Tim Wessman - 03-22-2014, 06:13 PM
RE: help programming - Arcturus314 - 03-22-2014, 06:25 PM



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