Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Lenght of variable tied to textbox.
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00267635
Message ID:
00267640
Views:
20
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?
Previous
Reply
Map
View

Click here to load this message in the networking platform