ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Passing arguments to Class Initializer (https://www.excelbanter.com/excel-programming/394476-passing-arguments-class-initializer.html)

adewole

Passing arguments to Class Initializer
 
Hi there

I wonder if it's possible to have arguments in the Initialize Event, of a
Class. If so, how do I instantiate the Class and pass the argument/s
simultaneously, as is possible with vb.net.

Thanks
H

Chip Pearson

Passing arguments to Class Initializer
 
It is not possible to create an alternate Initialize method that takes
arguments. You initialize the class and then call another method to sent it
information.

--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting
www.cpearson.com
(email on the web site)

"adewole" wrote in message
...
Hi there

I wonder if it's possible to have arguments in the Initialize Event, of a
Class. If so, how do I instantiate the Class and pass the argument/s
simultaneously, as is possible with vb.net.

Thanks
H




All times are GMT +1. The time now is 12:10 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com