How to refer to a label's caption

flemmo

Registered User.
Local time
Today, 23:35
Joined
Apr 26, 2006
Messages
69
Hi,

I'm brand new to VB, but here goes :)

Could someone tell me the syntax to reference and change a label's caption?
Basically I want a little text box that to easy test that variables are being passed around correctly.

Just to further explain the structure, I have

Form > Label > Caption.

Thanks!
 
Cheers!
This works fine if the command and label are on the same form, but how could I reference the label in another form?

is it something like:

Form with Command Button onClick
formname.Labelx.Caption = "hello"

I tried this and it said 'Object Required'.
 
Yep, works perfectly using your method
Thanks very much :)
 

Users who are viewing this thread

Back
Top Bottom