Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Yousfi Benameur
  Where is Yousfi Benameur?
 El Bayadh
 Algeria
 Yousfi Benameur
 To: surinder singh
  Where is surinder singh?
 mumbai
 India
 surinder singh
 Tags
Subject: RE: label and date and time
Thread ID: 188787 Message ID: 189090 # Views: 1 # Ratings: 0
Version: Visual FoxPro 6 Category: Forms
Date: Wednesday, August 13, 2008 11:15:01 AM         
   


> >
> >
> > try this code
> >
thisform.label1.caption =cdow(date())+" "+dtoc(date())+" "+time()

> > you must put a timer if you want the time continously and set intervel to 1000 (ms)or as you want .
> > The label is refresh all the value in timer interval.
> > Regards
> > Yousfi Benameur
>
> you don't need timer if you put
>
thisform.label1.caption =cdow(date())+" "+dtoc(date())+" "+time()

> in form's paint event
>
> -----------------------------------------------------------------------------------------------
> Regards
> Surinder Singh
> Email: sur200@indiatimes.com
> Check my blog for details: http://weblogs.foxite.com/sur200
> ----------------------------------------------------------------------------------------
> *If you understand what you're doing, then you're not learning anything.

Hi Surinder
Thank you for this remark.
by experience,It seems to me that working with the paint method consumes a lot of resources and slows the work of PC. That is why I almost never works with this method.
But what is refresh time interval of Paint M├ęthod ?
Regards
Yousfi Benameur

ENTIRE THREAD

label and date and time Posted by Jake Pomperada @ 8/12/2008 3:47:22 AM
RE: label and date and time Posted by Glenn Villar @ 8/12/2008 4:01:02 AM
RE: label and date and time Posted by Christian Tabligan @ 8/12/2008 6:23:19 AM
RE: label and date and time Posted by surinder singh @ 8/12/2008 7:25:48 AM
RE: label and date and time Posted by Christian Tabligan @ 8/12/2008 7:55:23 AM
RE: label and date and time Posted by surinder singh @ 8/12/2008 8:10:42 AM
RE: label and date and time Posted by Christian Tabligan @ 8/12/2008 8:22:05 AM
RE: label and date and time Posted by Yousfi Benameur @ 8/12/2008 10:28:38 PM
RE: label and date and time Posted by surinder singh @ 8/13/2008 9:08:33 AM
RE: label and date and time Posted by Yousfi Benameur @ 8/13/2008 11:15:01 AM
RE: label and date and time Posted by surinder singh @ 8/13/2008 11:23:11 AM
RE: label and date and time Posted by tushar @ 8/13/2008 1:45:31 PM
RE: label and date and time Posted by surinder singh @ 8/13/2008 1:52:11 PM
RE: label and date and time Posted by tushar @ 8/13/2008 2:49:29 PM
RE: label and date and time Posted by Yousfi Benameur @ 8/13/2008 4:14:02 PM
RE: label and date and time Posted by Christian Tabligan @ 8/14/2008 2:08:38 AM