Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Does this exist?
Message
From
14/05/2002 13:39:08
 
 
To
14/05/2002 12:56:47
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00656148
Message ID:
00656305
Views:
9
COOL! Thanks. I don't know why I didn't think of keyboard '{DEL}' I learned something new today too!
:o)
Tracy

>>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
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Reply
Map
View

Click here to load this message in the networking platform