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!

Initialize event with parameters

Status
Not open for further replies.

caseye

IS-IT--Management
Feb 7, 2002
52
US
Can you use parameters in the initialize event??
 
You can in VB.NET, but not in any earlier version of VB.

It's possible to fake it, though, by using a factory class.
 
... or a Construct() method (or some other similarly suggestive name) as a direct member of the class. The downside (as against a Factory) is an extra line of code at object create time, the upside is, er, not having to write the Factory(!) Depends on the size and complexity of the problem.

[puts "Design Patterns" back onthe bookshelf...]

Mike
 
I am creating some data objects and when the object is created I want to pass the Data record ID so that I dont have to create the object and call a method

i.e
Set objWorkOrder = CreateObject("LAMDataObj.WorkOrderCls('WOID')")

I have VB.net standard wich does not support ActiveX Dll
Can I Use Visual Studio 6 to create the dll and then install the .net framework
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top