I want to know the exact difference between a Class & a function ?
I think a Class does not return any value but a function does. Please correct me if I'm wrong.
Also, please tell me what is the actual use of class...where we can use it ?
Thanks to you all in advance.
In vbScript a Class provides a mechanism to physically encapsulate logically related data and function/sub entities. Here is a thread I recently posted that presents some of the more common aspects of the vbScript Class construct:
If you are familiar with the C language, you can create the equivalent of a structure in vbScript using a Class (in this case the Class would only contain data values). See the above article, at its many links to other sources, for more details.