Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Using Labels
Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
CompN




PostPosted: Tue Jan 16, 2007 3:18 pm   Post subject: Using Labels

How would you clear a label?

I know you use "Cls" to clear the form

How would I clear lets say Label2?

I tried

Label2.caption = cls
Sponsor
Sponsor
Sponsor
sponsor
rdrake




PostPosted: Tue Jan 16, 2007 4:12 pm   Post subject: RE:Using Labels

code:
Label2.caption = ""
...no?
CompN




PostPosted: Tue Jan 16, 2007 5:36 pm   Post subject: Re: RE:Using Labels

rdrake @ Tue Jan 16, 2007 4:12 pm wrote:
code:
Label2.caption = ""
...no?


no
Monstrosity_




PostPosted: Tue Jan 16, 2007 5:45 pm   Post subject: Re: RE:Using Labels

CompN @ Tue Jan 16, 2007 6:36 pm wrote:
rdrake @ Tue Jan 16, 2007 4:12 pm wrote:
code:
Label2.caption = ""
...no?


no

Then your being way to vague... from your description rdrake was right. So next time post what your doing to the label so we know what this magic clear function should do.
Remm




PostPosted: Tue Jan 16, 2007 5:48 pm   Post subject: Re: Using Labels

Whats wrong with just null stringing it? And if you're going to shoot down someone else's answer, wheres your support / altenative? -.-

anyways, I say yes, just give it a value of "" (null string).


Edit: Bleh, you beat me to it Smile
cool dude




PostPosted: Tue Jan 16, 2007 6:19 pm   Post subject: Re: Using Labels

Rdrake was absolutely right. Maybe he confused CompN by saying
Quote:
No?
lol.
Display posts from previous:   
   Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 6 Posts ]
Jump to:   


Style:  
Search: