friend --> Function convertion

absent

Regular
Joined
Sep 25, 2003
Messages
55
Location
UK
Is there a way to convert a friend sub to a function or class? I'm trying to make some of my code resuable and less bloaty. The code reads such :

Friend Sub BindToTreeview(ByVal TableName As String, ByVal FieldName As String, ByVal tView As TreeView)

Now I wanna know if that can be made a class or a function...

Thanx a mil
 
What exactly does the sub do?

Changing a sub to a function could be as simple as replacing the word sub with function and giving it a return type - however without knowing what it does it's difficult to say what other changes would be required.
 
Last edited:
you can simply convert friend func. to any other tipe couse friend can only use protected subs from inherited classes.
I think that classes cannot be like friend funct. Theirs func. in protected part can be used by a friend funct.
 
Back
Top