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
>>Thanks Fred, but unless I'm missing something, it doesn't work. The BELL would normally only sound if I had SET CONFIRM OFF when I reached the end of the field. Since I want the user to have to press Enter to leave the field, your suggestion wouldn't work.
>>
>>Am I missing something? (I usually am) ;-)
>
>
>Put BOTH the SET CONFIRM & SET BELL commands in the GotFocus/LostFocus events.
>
>
>>
>>>>I need to emulate the old DOS/Foxbase environment on certain textboxes (not all of them) on a form, i.e., require an Enter key to leave textbox, but turn on bell when user types last possible character into the textbox.
>>>>
>>>>I am setting CONFIRM on in the GotFocus event of the textbox, and turning it off in the LostFocus event.
>>>>
>>>>Can anyone give me a quick and easy way to determine when the end of the textbox has been reached so I can turn on a BELL warning?
>>>>
>>>>Thanks in advance.
>>>>
>>>>Jere
>>>
>>>Put a SET BELL ON in the GotFocus and a SET BELL OFF in the LostFocus.
Jere Wilson
N:deavor Systems, Inc.