yingkai1208
12 years agoContributor
How to use a class in another script
In a script A, I declare a Class
Class animal
Dim name
Dim category
End Class
I want to use this class in another script B
‘USEUNIT A
Dim chick
Set chick = New animal
Some error occurs, could anyone have a good solution for this issue
Thanks in advance
Class animal
Dim name
Dim category
End Class
I want to use this class in another script B
‘USEUNIT A
Dim chick
Set chick = New animal
Some error occurs, could anyone have a good solution for this issue
Thanks in advance
- http://support.smartbear.com/viewarticle/32212/#VBS
Read the 5th point for VBScript