Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_components thread: call a component from within another component


Message #1 by "Fotopoulos, Lefteris" <LFot@e...> on Fri, 17 Nov 2000 13:20:41 +0200
This message is in MIME format. Since your mail reader does not understand

this format, some or all of this message may not be legible.



------_=_NextPart_001_01C05088.6BD40410

Content-Type: text/plain;

	charset="windows-1253"



Can i call a component from within another component?

e.g. I have a VB project and from this project i wan't to call another

object let's say

Public Sub DisplayTable()



Dim Obj As Object



Set Obj = CreateObject("Project2.Class2")



End Sub



Is it possible?



----------------------------

Eleftherios C. Fotopoulos

Development

Eurocom Expertise SA

Mesogeion 372,

Ag. Paraskevi,

Athens, Greece

Tel.: +xxx xxxxxxx

Fax: +xxx xxxxxxx

http://www.eurocom.gr <http://www.eurocom.gr/> 

mailto:lfot@e... <mailto:lfot@e...> 

----------------------------





 




Message #2 by "Toby Anscombe" <tanscombe@m...> on Fri, 17 Nov 2000 11:56:11 -0000
This is a multi-part message in MIME format.



------=_NextPart_000_0009_01C0508D.60D1B1E0

Content-Type: text/plain;

	charset="windows-1253"

Content-Transfer-Encoding: 8bit



How do you think you get an ADODB.Recordset or ADODB.Command



make sure that you set the class you are creating to be type 5 - Multi Use.



Sorry if I appear rude, but NEVER EVER use type 6 Global Multiuse until you

have ben doing this for a while as you WILL get odd results and your server

will end up keeling over.



But other than that, make sure you set anything you create to nothing -

including in error handlers



Oh, and use early binding



dim obj as MyDLL.myclass



set obj = new MyDLL.myclass





  -----Original Message-----

  From: Fotopoulos, Lefteris [mailto:LFot@e...]

  Sent: 17 November 2000 11:21

  To: ASP components

  Subject: [asp_components] call a component from within another component





  Can i call a component from within another component?

  e.g. I have a VB project and from this project i wan't to call another

object let's say

  Public Sub DisplayTable()



  Dim Obj As Object



  Set Obj = CreateObject("Project2.Class2")



  End Sub



  Is it possible?



  ----------------------------

  Eleftherios C. Fotopoulos

  Development

  Eurocom Expertise SA

  Mesogeion 372,

  Ag. Paraskevi,

  Athens, Greece

  Tel.: +xxx xxxxxxx

  Fax: +xxx xxxxxxx

  http://www.eurocom.gr

  mailto:lfot@e...

  ----------------------------







  ---

  .NET Runtime components or build your own ASP+

  Decisions. Decisions!

  Wrox Professional Web Developer Conference

  29 November ? 1 December

  http://www.wroxconferences.com/WebdevEurope?mid038




$subst('Email.Unsub')









  Return to Index