Created
August 21, 2017 14:47
-
-
Save pravynandas/970e4d110dc846f1b5248371f2d9682d to your computer and use it in GitHub Desktop.
How to write a class in a VBS (vbscript file)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set clshw = new helloworld | |
before = clshw.SayHi() | |
clshw.Smile = “….. NOW I AM IN CLASS :D” | |
after = clshw.SayHi() | |
set clshw = nothing | |
msgbox before & vbcrlf & after | |
class helloworld | |
private pvt_smiley | |
public property Let Smile(smiley) | |
pvt_smiley = smiley | |
end property | |
public property get SayHi() | |
SayHi = “Hello World !” & pvt_smiley | |
end property | |
end class |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment