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: Jake Pomperada
  Where is Jake Pomperada?
 Bacolod City, Negros Occidental
 Philippines
 Jake Pomperada
 Tags
Subject: RE: label and date and time
Thread ID: 188787 Message ID: 189003 # Views: 1 # Ratings: 0
Version: Visual FoxPro 6 Category: Forms
Date: Tuesday, August 12, 2008 10:28:38 PM         
   


> Hi Guy,
>
> Is there a way I can display time and date using label.caption in my form without getting any errors? Please help thanks and God Bless.
>
> Regards,
>
> Jake :-D


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

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