1 Reply Latest reply on Oct 23, 2006 6:09 AM by Dan Bracuk

    referencing a returned array

      I have a problem with referencing an array returned from a component.
      But maybe this is just not possible, i don't know.

      I have a method wich returns an array with component instances.
      And i want to directly reference the methods in the component instances withing the returned array.
      so if i were to use it like this:

      <cfset x = myInstance.getClients()>
      X would be the array. I can then process it further like this:
      x[1].getAddress() would give me the clients address.

      However i would want to directly reference it, without setting the x variable first.
      However, the 'normal' syntax i would use does not work.

      So does anyone how to directly reference an array returned from a components instance?