Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP 9 Service app
Message
 
 
À
11/05/2021 17:35:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01680208
Message ID:
01680322
Vues:
28
>>>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.

Thank you!
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform