Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Entire forum
➜ MUSHclient
➜ VBscript
➜ class
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Kyrock
(20 posts) Bio
|
Date
| Thu 06 Nov 2008 10:19 AM (UTC) |
Message
| I've been going through my script file and been trying to tidy it up. One of the problems is I have a lot of duplicate code. I was wandering if VBscript classes can do anything like inheritance and if there's a way to make utility classes...something like static classes. | Top |
|
Posted by
| Nick Gammon
Australia (23,102 posts) Bio
Forum Administrator |
Date
| Reply #1 on Fri 07 Nov 2008 06:13 AM (UTC) |
Message
| I'm not sure about inheritance, but simple use of subroutines should reduce or eliminate duplicate code. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| WillFa
USA (525 posts) Bio
|
Date
| Reply #2 on Fri 07 Nov 2008 09:47 PM (UTC) |
Message
| If I remember correctly, "class" is one of the keywords that has been stripped out of VBS.
| Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
14,074 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top