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
Titre:
Lenght of variable tied to textbox.
Divers
Thread ID:
00267635
Message ID:
00267635
Vues:
48
Hello all.

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?

Thanks.
Paul R. Moon
Business Software Solutions
paul@businessoftware.com
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform