Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Refresh help
Message
From
03/10/2004 09:45:39
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Refresh help
Miscellaneous
Thread ID:
00948318
Message ID:
00948318
Views:
42
Hello,

I have a click event in Import button in myform.scx to append a record :
 SELECT 0
   USE AuditCls 
   APPEND BLANK
   replace userid WITH gcNovellId, sdate WITH DATETIME(), numRec WITH   nTltRecs,ieflag WITH "I"
   USE
   
**and  the TXTLASTIMPORTDATE textbox Init event in myform.scx :  

LOCAL lcLastImportDate,lctestdate

SELECT TOP 1 Sdate,userid ;
	FROM AuditCls ;
	GROUP BY 1 ;
	ORDER BY 1 DESC WHERE IEFLAG = "I" ;
	INTO CURSOR top1

SELECT top1

lcLastImportDate = sdate

lcLastImportDate = TRANSFORM(lcLastImportDate,'@YL') +' by '+userid

thisform.TXTLASTIMPORTDATE.Value=lcLastImportDate

Thisform.txtLastImportDate.Refresh()
Each I append a record to auditcls table, I want my txtlastimportdate to update instantly but ThisForm.txtlastImportDate.refresh() does not work.

Any help to fix my codes would be appreciated ?

TIA
Next
Reply
Map
View

Click here to load this message in the networking platform