Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pasting into EditBox with MaxLength set
Message
From
03/03/2006 15:25:31
Cindy Winegarden
Duke University Medical Center
Durham, North Carolina, United States
 
 
To
03/03/2006 04:28:01
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01101142
Message ID:
01101378
Views:
10
>>I found this question elsewhere and haven't found anything in my searches. Can anyone explain this?
>>
>>Create a form with an EditBox. Set the MaxLength to some (small, such as 10) number. Copy 1 character to the clipboard. Run the form and start pasting the character repeatedly into the EditBox.
>>
>>The EditBox will only allow you to make as many pastes as will be less than the MaxLength. In other words, with 1 character you can do 9 pastes for a total of 9 characters. You can't paste a 10-character string. This is also the case for other MaxLength sizes and _ClipText sizes.
>
>Hi Cindy,
>this is a bug.
>
>The keypress,InteractiveChange are fired, then at runtime a workaround is simple.

Yes, I've seen the work-around, but I wasn't sure whether it was a bug or not. Thanks.
Previous
Reply
Map
View

Click here to load this message in the networking platform