Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Edit box?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00219948
Message ID:
00220412
Vues:
26
I went back to VFP 3.0 and my MaxLength will not save as anything other than 0.

Does your MaxLength store a number other than 0?

What about this in the KeyPress method:

if len(THIS.value)=9
keyboard '{TAB}'
endif

This will chop the length at 10 characters as the last key you've pressed will not yet be added to the value. You might want to add a property to your TextBox class instead of having to code the number. You might also want to make sure the user didn't press a navigation key before doing this code (eg. if they hit Tab as their 10'th character in this example, they'll fly right by the next field I would think).

Joe

>Yes I have set max length and it still won't jump to next edit box
>any thoughts? I want them to wrap while typing.
>
>>How do you want them to go from one to the other? By hitting the end of the field? Have you tried setting MaxLength (in this case)?
>>
>>Joe
>>
>>>Vfp 3.0
>>>
>>>Hello All,
>>>
>>>I have 4 edit boxes as single lines of input with fields
>>>as control source.
>>>
>>>I would like to be able to have the user go from one
>>>edit box to the others without hitting enter or tab.
>>>
>>>I have tried set confirm off with no success, any thoughts?
>>>
>>>Thanks and have a great day.
>>>
>>>Becky
Joseph C. Kempel
Systems Analyst/Programmer
JNC
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform