Hello, As you allready may know, you can't 'call' a class file in a program, but you can call a method of an instance of a class file.
There is 2 approach to achieve this: with metatags: -To instanciate a class file: <@assign request$myclassinstance <@createobject type="tcf" objectid="myclass.tcf">> -To call a method on this instance: <@callmethod object="request$myclassinstance" method="mymethod(<@var request$param1>,<@var request$param2>"> You may know that methods can have 2 different behavior: either return a variable (wich may be of a specific type or any type) either return ResultHtml (wich is similar to affecting the <@result> of the method call to the return variable of type TEXT) with actions, it's only a matter of drag and drop with createobject action and callmethod action. I want to add that you may find usefull to organise your tcf in hierarchy in your application directories if you have to manage a huge number of classes. This is possible by manipulating the tcfsearchpath configuration variable (in the scope you need) before using <@createobject> or createobject action. It may look like this: <@assign request$tcfsearchpath '<@apppath>tcf/PresentationLayer/'> <@assign request$mypagedisplayer <@createobject type="tcf" objectid="pages.tcf">> wich will find <@apppath>tcf/PresentationLayer/pages.tcf class to instanciate it in the request$mypagedisplayer. Hope this helps Gauthier ----- Original Message ----- From: "Murugapiran" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, June 16, 2003 2:51 PM Subject: Witango-Talk: Calling Tango class inside taf > Hi, > > I find it difficult to call a class file inside taf file. Can somebody send > a code snippet to call tcf file inside taf file. > > Thanks, > Murugapiran Natan. > > > ________________________________________________________________________ > TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf > _____________________________________________________________________ > Envie de discuter en "live" avec vos amis ? T�l�charger MSN Messenger > http://www.ifrance.com/_reloc/m la 1�re messagerie instantan�e de France ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf
