Post Reply 
Calling a Program from Home Page. What's Wrong
12-10-2014, 07:32 AM
Post: #1
Calling a Program from Home Page. What's Wrong
New user.
Wrote my first program. Catesian Coord System

P2RN - Polar 2 Rectangular North Coordinate
A = Azimuth
D = Distance

Return a difference in Northing


==================
EXPORT P2RN(A,D)
BEGIN
//

LOCAL N;
N:=COS(A)*D;

RETURN N;

END;
==================


Run this "P2RN(45,100)"

from the Home Screen and get:

"Error: Syntax Error"

Have tried using variables for input after storing values into them.

Can't call "P2RN(45,100)" from another program either.

Works with "Run" in program Editor however.

what am I doing wrong?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Calling a Program from Home Page. What's Wrong - bobkrohn - 12-10-2014 07:32 AM



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