VB4-16bit Can't Make Text Control Text Property Empty 
Author Message
 VB4-16bit Can't Make Text Control Text Property Empty

PROBLEM
I can't assign "" to a text control.text (ie make it empty) that is part
of an array of text controls.
It seems to work if I assign " " (ie a sapce).

Has anyone else encountered this problem???



Mon, 25 May 1998 03:00:00 GMT  
 VB4-16bit Can't Make Text Control Text Property Empty

Quote:
>> PROBLEM
>> I can't assign "" to a text control.text (ie make it empty) that is
part
>> of an array of text controls.
>> It seems to work if I assign " " (ie a sapce).

It works for me - is this maybe a bound control?

- Mike



Mon, 25 May 1998 03:00:00 GMT  
 VB4-16bit Can't Make Text Control Text Property Empty

Quote:

>PROBLEM
>I can't assign "" to a text control.text (ie make it empty) that is part
>of an array of text controls.
>It seems to work if I assign " " (ie a sapce).
>Has anyone else encountered this problem???

Yes! It seems to work sometimes and not others, it has caused me no
end of problems, the best solution I have found so far is to
control.text = chr(0)

 - especially you seem to need to do this when testing to see if the
control.text is empty. I always thought that "" WAS a null string, but
there you  go, perhaps someone else can give a rational explanation of
this?

Dave Austin
+ -  Avalon; Legends Never Die.  Telnet: Avalon-RPG.com 23   - +



Mon, 25 May 1998 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Rich Text Box control for VB4 16bit?

2. 16bit Rich Text Box control for VB4?

3. VB6 Text property of UserControl does not work with UpDown Control's buddy property

4. VB4 text box Align text property not working

5. VB4 text box Align text property not working

6. Refer to text box's Text property

7. Text property of VB4 Grid control

8. Using varius text attributes in a VB4 16bit textbox

9. Control.Text Property won't show up on form

10. creating a text box errors message for empty text box

11. VB6--Empty Text File Not really empty

12. 'text' property is read only error

 

 
Powered by phpBB® Forum Software