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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing objects

Status
Not open for further replies.

tswitz00

IS-IT--Management
Jan 26, 2005
67
US
Keep in mind I am fairly new to vbs. What I am trying to pass an object to a function.

So I have
function1 () 'this function works
...
create object
...
return object


function2 (object) 'need to be able to pass object to this function and use it
object.sometask

 
I need the syntax for the function to pass an object

To just pass a string you can use
Function Hello(ByVal Name)
Hello = "Hello" & Name
...

right?

But what if I want to pass an object and use it like this
Function object(object)
object.sometask
...

 
Ah guess it was it wasnt as complicated as I thought. got it, thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top