Hi: Structs are old school and replaced by newer and much more powerfull and faster methods. You can use a Class to build any type of combination of data types and related subroutines functions and properties. Then you can just use a Generic list to hold instances of that class and you have a super struct. This approach is derived from the concept of Objects and a part of Object Orientated Programming used by many languages these days. It will take you some time to learn OOP and how to build good Classes but it will be well worth it. Everything in .net and the other major languages I am aware of use NameSpaces and Classes as the basic structure of their code blocks.
Rick USA

----- Original Message ----- From: "David Helkenn" <[email protected]>
To: <[email protected]>
Cc: <[email protected]>
Sent: Monday, March 26, 2012 5:04 PM
Subject: Struct datatype query


Hello,
I do not find any sort of reference to any kind of record or struct datatype. So, I conclude VBS has no such support for an aggregate type that can hold different datatypes in it. Unlike an array which holds homogenious datatypes, a struct can hold various types as a single aggregate. Is my conclusion correct? If so, I'll have to resort to several arrays -- one for each struct field. Gadd, what a lot of error-prone overhead!

If I am wrong, please point me to where I need to look! Thanks!

David Helkenn


Reply via email to