Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running a service and want to see if something is workin
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01249900
Message ID:
01249911
Views:
22
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform