Jord Visser Posted October 20, 2017 Share Posted October 20, 2017 Hi all, I'm made a rough PIO in vectorscript yesterday, this morning I added a procedure and it keeps getting stuck on a compiling error. I rewrote the function several times now, checked all the IF-ELSE's, WHILE's and BEGIN's and I keep falling back to this error. The MakeGrayObject Procedure is the one I added this morning The error is: Line #42: PROCEDURE LTSymbol; { Error: Extra text at end of script; missing BEGIN statement? } { Error: Identifier not declared. } I attached the pascal .txt file and the .vso, both only tested in VW2018. Can someone help me with this? With kind regards, Jord Visser ltsymbol.txt [LT] Advanced symbol.vso Quote Link to comment
JBenghiat Posted October 20, 2017 Share Posted October 20, 2017 You've defined LTSymbol as your main procedure, so any other procedures need to be inside that scope, i.e. place sub-procedures after the main procedure's TYPE, CONST, and VAR sections. Refer to the VS language guide for information on scope: http://developer.vectorworks.net/images/7/72/VectorScriptGuide.pdf 1 Quote Link to comment
Jord Visser Posted October 20, 2017 Author Share Posted October 20, 2017 24 minutes ago, JBenghiat said: You've defined LTSymbol as your main procedure, so any other procedures need to be inside that scope, i.e. place sub-procedures after the main procedure's TYPE, CONST, and VAR sections. Refer to the VS language guide for information on scope: http://developer.vectorworks.net/images/7/72/VectorScriptGuide.pdf Thanks for the quick reply! works as a charm. Makes a lot of sense now, quickly read trough the mentioned document a couple of times before.. I think it's time to read it thoroughly. 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.