Tilltek,
I can't say I remember that thread, but never mind -- I'll have a shot at answering.
Yes, I did mean "on the form". If I said "on the format", that would be a misprint.
You also need to add a Timer object to the form. A Timer is just another control, just like a label (except that is has no visible presence at run time). Drop if from the Forms Controls Toolbar in the usual way.
Select the Timer in the Form Designer. Go to its Property sheet, and find the Interval property. Set that to, say, 10000 (which is 10,000 milliseconds, or ten seconds).
Still in the Property sheet, find the Timer method (this is a bit confusing; "Timer" is the name both of the control and the method; here, I'm talking about the method).
Double-click on the Timer method in the Property sheet to open a code-editing window. This is where you write your code to diplay the time of day.
Assuming the label (the one that resembles the clock face) is named Label1, the code will be something like this:
Code:
THISFORM.Label1.Caption = LEFT(TIME(),5)
This displays the time of day in HH:MM format.
Now run the form. Stare at the clock for a while. It will take a few seconds to show the initial time. Wait a minute and the "minutes" will click over.
That should get you started. I use this very same example in my training courses to introduce the concept of object orientation. I then get the students to sub-class their clock class to produce an alarm clock (a more specialised type of clock). I'll leave that for you to do on your own over the weekend.
Have fun.
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
Visual FoxPro tips, advice, training, consultancy
Custom software for your business