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:
00267643
Views:
21
>>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

maxlength did it, thanks guys.
I think I had already discovered that once. If I could just stick to learning things right the first time, everything would probably go a lot faster.

Thanks!

BTW: Not tying things directly to a table field is a result of two things, first is habit, second is my bosses inherent distrust of things like buffering, etc.
Paul R. Moon
Business Software Solutions
paul@businessoftware.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform