Hi all,
I just downloaded the free trial version of DBPro and was making an if statement when it keeps producing a "Compilation Failed (Syntax Errors)" error.
I've worked with DBPro before and I can't seem to know what's wrong exactly.
Here is the code:
FUNCTION control()
IF UPKEY() = 1 AND zdirection = 0 AND keytoggle = 0
keytoggle = 1
zdirection = 1
ENDIF
ENDFUNCTION
zdirection and keytoggle are both global integeres by the way.
When I F5, it highlights the IF statement and produces that error.
I don't see what's wrong with it.
Can anyone help?
EDIT: Never mind, I had to close and re-open DBPro via "Run as Admin" before it works. Is this a bug?