Microsoft KB Archive/134979

= PRB: Last Line in a Method Doesn't Update Variables in Debug =

Article ID: 134979

Article Last Modified on 2/15/2000

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition

-



This article was previously published under Q134979



SYMPTOMS
If the last line of any form method is a variable assignment, the debug window doesn't refresh the variable assignment value.



STATUS
This behavior is by design. This is expected behavior because all local variables are destroyed right after the method scope is lost.



RESOLUTION
Create a form property that has the same variable name.



Steps to Reproduce Behavior
 Create a new form.  Place the following code in the Init procedure of the form: WAIT WINDOW "Variable assignment" NOWAIT nMyVeriable=12  Save the form as MyForm.scx. Open the debug window, and place the nMyVeriable variable in the left side of the debug window.  Type the following in the Command window: DO FORM MyForm.SCX </ol>

Additional query words: 3.00 VFoxWin

Keywords: KB134979

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.