PRB: Refreshed SAY Field Does Not Clear Previous ValueID: Q114494 2.5x 2.6x 3.00 | 2.5x 2.6x WINDOWS | MACINTOSH kbprg kbprb The information in this article applies to:
SYMPTOMSWhen the value displayed by an @ ... SAY object is refreshed, the previously displayed text is not completely cleared from the screen. This behavior will be most obvious when a short text string is displayed immediately after a long text string. CAUSEThe values may not be completely cleared if either of the following conditions is true:
RESOLUTIONThere are two ways to correct the problem of not properly clearing previous SAY values:
MORE INFORMATIONSteps to Reproduce Problem1. Run the following program: USE (SYS(2004)+'tutorial\customer.dbf') && (FoxPro 2.x) * In Visual FoxPro, substitute the following line instead of the line * above: * USE (SYS(2004)+'samples\data\customer.dbf') && (Visual FoxPro) CLEAR DEFINE WINDOW test FROM 1,1 TO 15,50 ; FONT "COURIER NEW",12 STYLE "N" ACTIVATE WINDOW test @ 1,8 SAY customer.company ; FONT "Times New Roman",18 STYLE "BT" ; SIZE 1,30 @ 5,10 GET choice ; PICTURE "@*HN refresh" SIZE 2,8,1 ; DEFAULT 1 VALID choiceval() READ CYCLE SHOW rdshow() RELEASE WINDOW test CLOSE DATABASES FUNCTION choiceval && choice VALID SKIP SHOW GETS RETURN && END FUNCTION choiceval FUNCTION rdshow && Read Level Show @ 1,8 CLEAR TO 2,38 @ 1,8 SAY customer.company ; FONT "TIMES NEW ROMAN", 18 STYLE "BT" ; SIZE 1,30 RETURN && END FUNCTION rdshow 2. When the window is activated, choose the Refresh push button several times. Note that longer company names and the lower portion of the company names are not cleared completely. Additional reference words: FoxMac FoxWin VFoxWin 2.50 2.50a 2.50b 2.50c 2.60 2.60a 3.00 KBCategory: kbprg kbprb KBSubcategory: FxprgUdwindow Keywords : FxprgUdwindow Version : 2.5x 2.6x 3.00 | 2.5x 2.6x Platform : MACINTOSH WINDOWS |
Last Reviewed: May 1, 1996 |