Post Reply 
Prime OS Error?
07-15-2024, 02:43 PM
Post: #1
Prime OS Error?
I don't know if this was caused by updating to the beta version of the OS or not but it used to work:

I have a small routine (below) that I used to call from other programs and it worked fine. Now, however, I get a syntax error when I try to call it.

Code:
EXPORT TAB()
BEGIN
  LOCAL I,T;
  T:="";
  FOR I:=1 TO X DO
    T:=T+" ";
  END;
  RETURN T;
END;

Called by:

Code:
PRINT(TAB(14));

Tom L
Cui bono?
Find all posts by this user
Quote this message in a reply
07-15-2024, 03:17 PM
Post: #2
RE: Prime OS Error?
Is X global?

How does the 14 get passed to X (I think the intention here)?

--Bob Prosperi
Find all posts by this user
Quote this message in a reply
07-15-2024, 03:36 PM
Post: #3
RE: Prime OS Error?
(07-15-2024 03:17 PM)rprosperi Wrote:  Is X global?

How does the 14 get passed to X (I think the intention here)?

You nailed it. Somehow in editing, I lost the X in the parentheses. It works fine now. Oops!

Tom L
Cui bono?
Find all posts by this user
Quote this message in a reply
Post Reply 




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