LoginSignup
2
1

More than 5 years have passed since last update.

VBScriptのクラスでコンストラクタらしきものを使う

Last updated at Posted at 2014-11-29

(追記)

類似しているものを見つけました。
default property を使う方法みたいです。

VBA/VBScriptのクラスのコンストラクタに引数を渡したい
http://qiita.com/mitaken/items/42f16c2661caa7ff0002

(追記終わり)


よくあるパターンだと思われる。

class Test
   private param
   public function init(byval arg)
       param = arg
       set init = me
   end function
end class

dim t
set t = (new Test).init(123)
2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1