On 9/1/10 8:02 PM, Jim Byrnes wrote:
> I have a textbox I need to remove the data from a previous operation.
>
> If I do self.Form.PwordsPasswords.clear() the text remains in the box.
>
> If I do self.Form.PwordsPasswords.Value = '' the text is gone.
>
> Am I misunderstanding or mis-using the clear() method?
Yes, clear() clears the background when using custom-drawn objects. It is
inherited
from higher up, and doesn't apply to the textbox's Value. You should, as you've
already discovered, set Value to whatever you want it to be (None, "", 0,
Decimal("0.00"), False, etc.)
Paul
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]