Link to home
Start Free TrialLog in
Avatar of Bob Schneider
Bob SchneiderFlag for United States of America

asked on

Passing an object in a sub call in vb6

How do I pass an object as a parameter in vb6 when calling a sub?  I want to create a sub that will execute an ftp script in a module but the Inet object is in the form.  I should know this but...  Also, is that ByVal or ByRef?  I assume ByRef?

Thank you in advance!
ASKER CERTIFIED SOLUTION
Avatar of Martin Liss
Martin Liss
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Bob Schneider

ASKER

Thank you!
You’re welcome and I’m glad I was able to help.

If you expand the “Full Biography” section of my profile you’ll find links to some articles I’ve written that may interest you.

Marty - Microsoft MVP 2009 to 2017
              Experts Exchange Most Valuable Expert (MVE) 2015, 2017
              Experts Exchange Top Expert Visual Basic Classic 2012 to 2018
              Experts Exchange Top Expert VBA 2018
              Experts Exchange Distinguished Expert in Excel 2018
ByRef is the default in VB, not ByVal.  

ByVal became the default in VB.NET but this was not so in VB.