tom kyler_dup1 Posted March 21, 2004 Share Posted March 21, 2004 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??? Quote Link to comment
ccroft Posted March 21, 2004 Share Posted March 21, 2004 Tom You need to change the procedure name. The compiler is getting confused by the name being the same as the vectorscript function. The script works if I use for e.g : PROCEDURE scale_it; ..... ..... RUN(scale_it); Quote Link to comment
tom kyler_dup1 Posted March 22, 2004 Author Share Posted March 22, 2004 DOH! Thanks! That's happened to me before....Maybe I'll learn my lesson this time. Quote Link to comment
Recommended Posts
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.