Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Lenght of variable tied to textbox.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00267635
Message ID:
00267640
Vues:
18
Set the textbox MaxLength property to 10.

BTW, why you don't bind the controls to the table fields?
>I have a form using memory variable created with SCATTER MEMVAR. One textbox control is ties to M.ACCOUNT which I need to use in a subsequent seek. The database field it represents is 10 characters, but the length of the variable ends up being more, based on the width of the textbox. The account field is part of a compound (? right terminoligy ?) index i.e. ACCOUNT + DTOS(DATE) and so the variable needs to end up being exactly 10 characters. I know I could PADR(ALLTRIM()) it but this will probably be a common occurance. Is there any way I can force the textbox to store a 10 character variable short of changing its width or tying it directly to a field in a table?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform