-
I have one question. How exactly do you add a .name to your list? (example: entries.name2 ="") It won't let me add a PUBLIC NAME AS STRING in any other place but my class. I'm working on a database (not in Mdb! All in VB!) and would appreciate any help anyone could give me.
Thanks alot
-
if you are creating a Class you need to use a private variable and then use Property Let and Get - you might as well do it this way because even if you use a Public variable (which you shouldn't) it will create hidden Let and Get properties for you anyway.
e.g.
Private m_Name As String
Public Property Get Name() As String
Name = m_Name
End Property
Public Property Let Name(ByVal s_NewName As String)
m_Name = s_NewName
End Property
Apart from that it is the variable name 'Name' that the compiler objects to. Change it to aName.
What is it, exactly you are trying to achieve?
Cheers,
P.
-
Thanks alot
Thanks for your help. To answer to your question, I'm just trying to learn how to do all this database stuff. I'm just learning COM and Winsock to make my apps a bit more spicier along with API.