General information
Category:
Coding, syntax & commands
>>In your main prg:
>>SYS(2335, 0) && Unattended Server Mode
>>PRIVATE Console
>>Console = ConsoleLog() && Create Console once in your main
>>Console.Log("Starting VTC_GPS") && Console.log("Your String") will write to the console AND the log file
>>
>A question, please. Should the code above (starting with SYS(2335, 0)) be at the top of the MAIN.PRG.
>That is, be before my code in the MAIN.PRG?
Yes.
SYS(2335, 0) will throw an exception if your app attempts any UI operation.
The exception is not a bad thing, I have seen it when the app can't find a DBF file.
I get an email with the log file and can see where the problem occurred.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only