>Do you want to blank it out only long enough to enter a new value, or blank it out entirely for good? If only while entering a new value, then what about setting select on entry to .t.? As soon as the user starts typing, it overwrites the current value with the new value.
>
>Also, I think there is an undocumented feature in VFP, where if you put a dodefault in the gotfocus method of a text box, it will do the equivalent to a select on entry when clicking on the textbox with the mouse.
>
I didn't know about this one so thanks for pointing it out. By putting
DODEFAULT()
KEYBOARD "{DEL}"
in GOTFOCUS you "blank out" the field whether you enter via Keyboard or Mouse. The way I read the original post, I think that's the behavior which was requested. Even if it wasn't Dave's requirement, it's been one of mine at times. Thanks Tracy, I learned something useful today (as I do just about every day I read the UT).
>>Hello,
>>
>>Is there a keyboard shortcut that will make a field blank? I need to provide an easy way for users to blank out a numerical field that contains previous input. VFP won't allow one to just delete the field's value, which I don't understand why. When I attempt to delete the value from the field, the field automatially resets itself to zero. I don't want to use null values for practical reasons.
>>
>>Any help would be appreciated :-)
>>
>>Thank You,
>>
>>Dave