Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Running a service and want to see if something is workin
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01249900
Message ID:
01249911
Vues:
24
>>How can I see if something is working in a service? If I put a WAIT WINDOW in one of the procedures, should it display, error or just skip when that line is run? I don't seem to see anything happen, so I'm unusure if the process is working.
>
>Write to a file in the method you are firing periodically, you can write a method to format the messages, for example a simple one.
>
>
>define YourClass as YourBaseClass of YourClassLIB OLEPUBLIC
>* Your other methods
>	LogFile = '\\YourServer\YourShare\YourFolders\YourFileName.txt'
>
>	procedure LogMessage(tcMessage as String) as void
>		if vartype(tcMessage) = 'C'
>			strtofile(ttoc(datetime) + chr(9) + tcMessage, this.LogFile, 1)
>		endif
>	endproc
>enddefine
>
>
>[Update] I see Naomi beat me to it, on my defense, I wasted time writing code <g>

I actually have very similar code in my class as well.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform