Jump to content
Developer Wiki and Function Reference Links ×

scale procedure won't compile


Recommended Posts

I have a script as follows that will not compile:

PROCEDURE Scale;

VAR

xfactor: REAL;

BEGIN

xfactor:=realdialog('Scale Factor = ','1');

scale(xfactor,xfactor);

END;

run(scale);

The error message given is as follows:

Line #8: scale(xfactor,xfactor);

|

{ Error: Did not expect this after end of statement - missing ;? }

When line #8 is the only line in the script, it complies successfully. Somehow, having the scale function in the body of the script causes it to not compile. Also, if I use the scale function with no arguments (i.e. Scale; ) then that will compile successfully. If I substitute any procedure in place of the scale function, the script will compile successfully. Any input???

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...