Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Automatically exiting a textbox control when it's full
Message
De
31/12/1997 18:56:21
 
 
À
31/12/1997 04:35:19
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00068171
Message ID:
00068726
Vues:
44
>>>Ernie,
>>>
>>>Adding to what Barbara said. . . you must also ensure that you have CONFIRM set OFF.
>>>
>>>Cheers,
>>>Jim N
>>>
>>>>>Is there a property that can be set *somewhere* that will globally cause the cursor to exit a textbox field when the maximum amount of data allowed has been entered? You know, say a phone number with 10 digits ... after the 10th digit is entered, I would like the cursor to move to the next control. (Pretty common, but for the life of me, I can't find what makes that happen.)
>>>>>
>>>>>Please and thanks.
>>>>
>>>>Ernie, check the FORMAT and INPUTMASK properties of the textbox control. You should be able to handle everything you want with these - telephone numbers, social security numbers, etc.
>>>>
>>>>Barbara
>>
>>Thanks for your input. I've tried playing with FORMAT, INPUTMASK, MAXLENGTH, and making sure SET("CONFIRM") = OFF but I'm still having trouble making this work. I must still be missing something. Inputmask is (999) 999-9999, Maxlength is 10, and Format is KZ. Could there be an overriding property elsewhere? Baffled.
>>
>>Ernie
>Hi Ernie,
>Two points :
>1. In format mask you use KZ. Z for zero, is this a numeric value ? For tel. numbers it's convenient to have char values and format mask as KR.
>2. SET CONFIRM is scoped to current datasession. So if globally you have *set confirm on* and you set it on entry.prg *off* it won't *set confirm off* in form loading with a DE. It will be set back to *on*. In DE, beforeopentables event add *set confirm off*

Hi Cetin,

Well I hope you're wrong. I have confirm set on as the default in tools-options. In the Form.Load I have
"Set Confirm Off", and when I run the form, Confirm is indeed off. At first I thought that it was on when the
form was active (see another branch from your message), but I just discovered that I was not looking at the
correct data-session.

If I'm overlooking something, I would appreciate having it pointed out.

Bill
Bill Morris
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform