How do you declare an object in VBscript? Dim object

Showing Answers 1 - 2 of 2 Answers

balaji

  • Oct 7th, 2006
 

Hai,

Dim obj as new class-name()

when you have made your object, you have to make a variable for that object


you have made an object and called it  

newform

now you created a variable for your object called

varform


now you have to write it

dim varform as new newform



this will make your object declare

as new

means to visual basic to declare a object

but now you may have to make a variable for it, if you want to make it a global var, then put this at the top and not in a block of code so all the script can access it.



  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions