PDA

Click to See Complete Forum and Search --> : VBScript and Classes


CiberTHuG
Jul 12th, 2001, 09:24 AM
Okay, I'm sick of huge arrays in my ASPs, so...

VBScript doesn't support hash tables (associative arrays). It doesn't support structs (UDTs). It doesn't support classes? Is there any way to build a congregate data type in VBScript?

ShIzO
Jul 12th, 2001, 11:15 AM
client or server side?

CiberTHuG
Jul 12th, 2001, 11:25 AM
Well, its ASP, so it is server-side. Also, since VBScript is not a client side standard, I don't support it. ;)

But... I'm getting ready to use PerlScript for my ASPs. Now I will truelly have power. No more POS VBScript holding me back. Time to lace up your boots boys, it's ass kickin' time.

reeset
Jul 12th, 2001, 12:12 PM
Try looking at Wscript Components: These are basically oca files that are written in vbscript. They use an xml/vbscript format, but they are really easy to use, and allow you to provide class and property support to vbscript.

MS Info:
http://msdn.microsoft.com/scripting/

Hope this helps.

monte96
Jul 12th, 2001, 12:22 PM
VBScript does support classes...

CiberTHuG
Jul 12th, 2001, 01:31 PM
Not that it matters terribly, but can you elaborate, Monte? I looked at MSDN ('http://msdn.microsoft.com/scripting/default.htm?/scripting/vbscript/default.htm') and didn't find anything. Not that it isn't there, I just didn't find it.

monte96
Jul 12th, 2001, 01:55 PM
Read this (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnmind99/html/classes1199.asp) on MSDN...

CiberTHuG
Jul 12th, 2001, 02:13 PM
Okay... you are starting to rain on my parade.

Can I use anonymous variables or pointers in VBScript?

monte96
Jul 12th, 2001, 03:41 PM
uh.. hehe.. uh.. no.