Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: tushar Kanvinde
  Where is tushar Kanvinde?
 Kolhapur, Maharastra
 India
 tushar Kanvinde
 To: surinder singh
  Where is surinder singh?
 mumbai
 India
 surinder singh
 Tags
Subject: RE: label and date and time
Thread ID: 188787 Message ID: 189151 # Views: 1 # Ratings: 0
Version: Visual FoxPro 6 Category: Forms
Date: Wednesday, August 13, 2008 2:49:29 PM         
   


> > Surinder
> >
> > It is much more than once a second. Try
>
> yes you are right.
> but can't understand how does it refresh time after every second when we set caption as TIME()
> -----------------------------------------------------------------------------------------------
> 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.

It is refreshing more than once a second but you cannot see the change. Try

PUBLIC oform1

oform1=NEWOBJECT("form1")
oform1.Show
RETURN



DEFINE CLASS form1 AS form


	DoCreate = .T.
	Caption = "Form1"
	refreshtimes = 0
	Name = "Form1"


	ADD OBJECT label1 AS label WITH ;
		Caption = "Label1", ;
		Height = 17, ;
		Left = 108, ;
		Top = 48, ;
		Width = 40, ;
		Name = "Label1"


	PROCEDURE Paint
		this.label1.Caption=TIME()
		thisform.refreshtimes=thisform.refreshtimes+1
		WAIT WINDOW TRANSFORM(thisform.refreshtimes) nowait
	ENDPROC


ENDDEFINE
*
*-- EndDefine: form1
**************************************************


Regards
Tushar

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