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:
00267641
Vues:
25
>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.

What happens if you set maxlength prop. to 10?

Jeff

It's Time to get a gun.

That's what I've been thinkin.

I think I can afford one, If I do a little less Drinkin.

www.TrueGeeks.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform