The answer, direct from Macromedia, is that passing parameters by reference (in other words, using function parameters to pass back data) through COM is *NOT* supported in ColdFusion and, furthermore, is bad object oriented programming style.
Just thought I'd pass this along in case it was needed in the future. -----Original Message----- From: Hagan>,Ryan [mailto:[EMAIL PROTECTED]] Sent: Monday, January 27, 2003 8:20 AM To: CF-Talk Subject: Passing parameters through 3rd party COM objects <cfobject> Greetings, I'm trying to read and write data through a 3rd Party COM object. Thus far, I have successfully created the object, read and written properties and retrieved data through functions. However, I run into a problem when I need to pass data to the object that the object itself modifies and then passes back. For instance, <cfset MyNumRows = comObj.GetNumCatRows( "MyCategoryName" )> works just fine. However, <cfset MyCatName=arrayNew(1)> <cfset arrayResize( MyCatName, MyNumRows )> <cfset comObj.GetCatRowName( "MyCategoryIndex", MyCatName )> doesn't work so well. I get the following error information: ====== Unknown error ! Error building an argument list for: GETCATROWNAME The error occurred while processing an element with a general identifier of (CFSET), occupying document position (125:2) to (125:73) in the template file TEST_WHATIF.CFM. ======= The GetCatRowName Sub is expecting a One Dimensional Array which it will stuff with the names of all the categories in the file I'm working with. I've been digging through the books I've got here and the message boards, but no luck so far. Any ideas? Thanks in advance. Ryan Hagan [EMAIL PROTECTED] ph: 540-731-3598 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

