FIX: Get Displays 0 When ENTER Key Used to Move to Next GetLast reviewed: October 20, 1997Article ID: Q134244 |
3.00
WINDOWS
kbdisplay kbfixlist kbbuglist kbcode
The information in this article applies to:
SYMPTOMSAn @...GET whose source contains a numeric value, changes from that numeric value to zero when you press the ENTER key to move to the next GET. This problem doesn't occur if you press the TAB key or use the mouse to move to the next GET. This happens only the first time the program is run after Visual FoxPro is opened.
WORKAROUNDUse a VALID clause that does a REFRESH for the @...GET. (See the "Code to Work Around Behavior" section in this article for an example.
STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem was corrected in Visual FoxPro 3.0b for Windows.
MORE INFORMATION
Code to Reproduce ProblemCLEAR lc_char = SPACE(4)ln_number = 2 ln_num2 = 1.0@ 3, 57 GET m.ln_number @ 5, 57 GET ln_num2 @ 7, 57 GET m.lc_char READ
Code to Work Around ProblemCLEAR lc_char = SPACE(4)ln_number = 2 ln_num2 = 1.0@ 3, 57 GET m.ln_number VALID GetRefresh(Thisform.ActiveControl) @ 5, 57 GET ln_num2 VALID GetRefresh(Thisform.ActiveControl) @ 7, 57 GET m.lc_char VALID GetRefresh(Thisform.ActiveControl) READ PROCEDURE GetRefresh PARAMETERS x x.REFRESH() |
Additional reference words: 3.00 VFoxWin fixlist3.00b buglist3.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |