The Compile() method returns an error when Windev can not compile it.
For instance (correct code):
teller is int = hnbrec("client")
result teller
This code returns the amount of items in de Client datafile.
But when I make a typo like:
teller is int = hnbrec("client")
result telles //should be teller
Windev does not mention an error...
But when I make a typo like:
teller iss int = hnbrec("client") //should be is
result teller
It throws a syntax error telling me it does not recognize iss.
How do I check the second example so it will throw an error?
EDIT: However when I execute the code with
ExecuteProcess("<the process name>", trtProcedure)
The process will return an error saying it does not know telles... But I don't want to execute the process, I only need to check it and write it to the database.