Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / SetControlDevice Program syntax error

Author
Message
VGHero11
12
Years of Service
User Offline
Joined: 15th Nov 2011
Location:
Posted: 29th Feb 2012 18:38
Hello again.

Well I finished another exercise from the Beginner's guide to dark basic book, and I have gotten a syntax error when I go to compile. When I look at it, it looks correct so if someone could look at it and tell me where the error is occurring, that would be great. Thanks!



When we all lend our power together, there is nothing we
can't do!
Please Lend me your STRENGTH!
Lucas Tiridath
AGK Developer
15
Years of Service
User Offline
Joined: 28th Sep 2008
Location: Kings Langley, UK
Posted: 29th Feb 2012 19:24
Hi there. I think you have a couple of problems here. First off, this line is not allowed



because endfunction can only return a variable I believe. The compiler does not seem to have the same problem with exitfunction but I don't know whether it is actually meant to work. Thus you need to use thing like this instead



Also by turning sync on, you will cause trouble for displaying your prints and inputs. Thus, you should comment out those lines. Hope that helps.

Login to post a reply

Server time is: 2024-05-09 09:44:55
Your offset time is: 2024-05-09 09:44:55