How to initial Class
Hi All
How to initial class to run initial procedure ?
class Account
dim Username
dim Usernamepassword
dim Domain
dim objshell
sub init
Set objshell = CreateObject("Wscript.shell")
Username = objshell.ExpandEnvironmentStrings("%me%")
Usernamepassword = objshell.ExpandEnvironmentStrings("%mepw%")
end class
set myAccount = new Account
myAccount.init() <= can able to skip this line ?
When set xxx = new Account , the auto run initial procedure
|