Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Requiring Enter Key & Setting Bell at end of TextBox
Message
From
21/01/2000 14:24:12
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00320673
Message ID:
00321066
Views:
19
>>Thanks for working with me on this Fred. I currently have the following, which DOESN'T work:
>>
>>in textbox methods(events):
>>
>>GotFocus:
>> SET CONFIRM ON
>> SET BELL ON
>>
>>LostFocus:
>> SET CONFIRM OFF
>> SET BELL OFF
>>
>>With those events coded as such, when I get to thelast possible charater in the textbox, I remain in the textbox and keep overwriting the last character. However, no BELL tone is issued.
>>
>>Again, my understanding of the old is that if you have CONFIRM off and BELL on, then you get a bell tone when you enter the last character, prior to automatically going on to the next field. That is not what I want. Again, I want the bell tone to sound when the user types the last possible character (MaxLength), continue to sound (preferably) if the user continues to type more characters, but not move on to the next field until the user presses Enter key.
>>
>>Is there a function i can interogate or use in conjunction with MaxLength, perhaps in the Keypress event, with having to parse text or writing a lot of code??
>>
>>Thanks again.
>>
>>Jere
>>
>
>Are you sure it doesn't work? Works exactly the way you want it on mine. Do you have a sound card in your machine? If you don't, VFP only does a pathetic little click, not an actual bell sound. And it does this on every single character that replaces the last one in the string.

Duhhhhhhhhhhhh .... well, since I'm a lowly, outside consultant working for this client, of course my machine doesn't have a sound card. Of course, I'm still so engrained in the old DOS world, where every PC had an internal speaker and it was just sorta automatic, you know what I mean!!!!

I can't test this on a REAL user machine probably until Monday of next week, but I will certainly do so, and for now assume you are right about the code itself. Thanks again for the help.

Jere
Jere Wilson
N:deavor Systems, Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform