Post Reply 
Struggling with CAS programming
09-18-2018, 01:14 AM
Post: #10
RE: Struggling with CAS programming
(09-17-2018 09:57 PM)CyberAngel Wrote:  
(09-17-2018 03:45 AM)rushfan Wrote:  The code still does not work, even with the changes proposed. It gives "Error: Unmatch control word"

You seem to have noticed that a function returns only one value
because your last version combined the RETURNs into a list.

LOCAL d:=0; // is allowed since a simple value can be assigned in a variable declaration
but the code is more clear the way you do it.

Note that you didn't declare the FOR lpv
I remember once having code where I needed even FOR variable declaration.
VPN

Yep, I noticed that. Since lpv is not declared, it ends being used as global and so returns value when function returns.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Struggling with CAS programming - rushfan - 09-17-2018, 12:54 AM
RE: Struggling with CAS programming - rushfan - 09-18-2018 01:14 AM



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