Hi, by the way is there possibility for native tcf to return collections of objects?
Thanks for the info :) Gauthier -----Message d'origine----- De: Jon Grieve <[EMAIL PROTECTED]> A: Multiple recipients of list witango-talk <[EMAIL PROTECTED]> Date: 14/11/02 Objet: RE: Witango-Talk: object loop question Yes... an Object loop (i.e. <@OBJECTS>) is for when an Object returns a 'collection' (which is a VB term, I think, but probably still relevant here) of other Objects For example, the code below is from my recently-posted FileSystem COM object example: <@ASSIGN local$Files <@CALLMETHOD local$Root METHOD="Files()" METHODTYPE="GET">> <@OBJECTS OBJECT=local$Files ITEMVAR=local$File> <@CALLMETHOD local$File METHOD="Name()" METHODTYPE="GET"> </@OBJECTS> Jon -----Original Message----- From: David Shelley [mailto:dmstechserv@;cogeco.ca] Sent: 14 November 2002 2:59 To: Multiple recipients of list witango-talk Subject: RE: Witango-Talk: object loop question Craig, I would recommend writing the method to accept an array of IDs as input, then loop through those and generate your reports. If you put the loop in your taf file you incur the extra overhead of calling the method 50 times. It's a normal for loop you need, not an object loop. Dave Shelley [EMAIL PROTECTED] Visit tango.ca for expert developer assistance, custom business applications or application audits. -----Original Message----- From: [EMAIL PROTECTED] [mailto:owner-witango-talk@;witango.com]On Behalf Of Craig Lutz Sent: Thursday, November 14, 2002 9:46 AM To: Multiple recipients of list witango-talk Subject: Witango-Talk: object loop question I have a TCF that takes one parameter - an ID - and then does a bunch of dbms stuff and then returns an HTML report based on that ID. I have only had to prepare the report for one ID at a time so this was never an issue, but now I need to do the same thing for say an array of 50 IDs. So, my questions is, what is the most appropriate way of doing this? Should I just set up a normal FOR LOOP and execute the TCF for each row in the array and let the HTML accumulate. Or is this what an OBJECT LOOP is for? I've never used that action before and am not sure I completely get what it is asking for. Any advice would be greatly appreciated. Thanks, Craig __________________________________________________ Modem offert : 150,92 euros remboursés sur le Pack eXtense de Wanadoo ! Haut débit à partir de 30 euros/mois : http://www.ifrance.com/_reloc/w ________________________________________________________________________ TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED] with unsubscribe witango-talk in the message body