Create Object

Results 1 to 2 of 2

Thread: Create Object

  1. #1
    Join Date
    Dec 1969

    Default Create Object

    Hi<BR><BR>Need some quick response on this matter... thanks<BR><BR>I want to know how to do this in ASP.NET<BR>-------------------------------------------------------------<BR><BR>in ASP this is the code:<BR><BR>let&#039;s say i have a dll file registered in system as myObject.Class1<BR><BR>ASP Code:<BR><BR>&#062;-- Start Code<BR><BR>Dim myObject<BR>Set myObject = Server.CreateObject("myObject.Class1")<BR><BR>myVa r = myObject.readData(&#039;var1&#039;,int1)<BR><BR>re sponse.write myVar<BR><BR>Set myObject = Nothing<BR><BR>--&#060; End Code

  2. #2
    Join Date
    Dec 1969

    Default RE: Create Object

    It is the same, except you need to remove "Set":<BR>myObject = Server.CreateObject("myObject.Class1")<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts