Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP 9 Service app
Message
From
11/05/2021 17:35:51
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01680208
Message ID:
01680321
Views:
34
>>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
Map
View

Click here to load this message in the networking platform