Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Stopwatch.
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
00976132
Message ID:
00976179
Views:
14
>Okay. I've done this before, but I forgot and there are no good examples in VFP Help. I have subclassed the datetime _stopwatch class to 'stopwatch' and all I want to do is reset it to zero when I click a button on my form. The class resides on the form as well. I should use reset() to make it happen. I have tried every combination of idea, but no success yet. So, I am here to ask the experts. Will you please show me how this is done.
>
>Thanks in advance.

Are you saying that when you try to call the Reset() method of the stopwatch it doesn't work? I just tried it and it worked fine from a subclass I created. Is there some chance you put some code in the Reset method of your subclass and didn't call DODEFAULT()?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform