Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Properties

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
In my project I can not change the value of my properties on design time. As you can see on the lowercase 'n' in the procedure below.

What could be the possible cause of this weirdness?!

Private Sub Command1_Click()
With Command1
.name = "Hello!"
End With
End Sub

Greetings,

Bart.
 
If you have a variable of "name" some where in your program VB likes to make everything consistent and changes them all.

To fix this, create another variable:

-------
Dim Name As String
-------

And you should get back your "N".

- Bill
 
Thanks! You are right! A collegue already found out! But thanx anywayzzz!!

Greetings,

Bart
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top