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

1) Create a new form's property to hold the info in the textbox, like cLastImportDate
2) Bind the textbox to that property
3) Call thisform.refresh() in the method called from your button
4) Do not have lots of code in thisform.refresh()

>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
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform