Microsoft KB Archive/116036

{| = PRB: SHOW GET  ENABLE/DISABLE on Zero-Length Memvar =
 * width="100%"|

ID: Q116036

The information in this article applies to:


 * Microsoft FoxPro for MS-DOS, versions 2.0, 2.5, 2.5a, 2.5b
 * Microsoft FoxPro for Windows, versions 2.5, 2.5a, 2.5b
 * Microsoft FoxPro for Macintosh, versions 2.5b, 2.5c

SYMPTOMS
If you set a memory variable equal to "" (an empty string of zero length) in order to clear out the variable GET field, and you then disable the field with the SHOW GET DISABLE command, FoxPro will clear the memory variable and disable the field; however, if you later want to enable the field, the field won't be accessible after you issue the SHOW GET ENABLE command because the memory variable has no value to display.

RESOLUTION
Instead of assigning the memory variable to "", assign the memory variable to a string of spaces the length of the memory variable. For example:

m.company="                   " or m.company=SPACE(25) Additional reference words: FoxMac FoxDos FoxWin 2.00 2.50 2.50a 2.50b 2.50c memvar KBCategory: kbenv kbprg kbprb KBSubcategory: FxenvMemory
 * }