3 Replies Latest reply on Nov 22, 2010 9:45 AM by Dave Watts

    Using isDefined/StructKeyExists against a .Net com object

    Jo Corless

      I'm doing some .Net integration and the values of the .Net object returned need to be inspected and then displayed if they are defined


      I've found that the conversion process brings everything back as rootObject.Get_ObjectName().Get_Value() which blows up if the object is empty throwing an undefined error - However if I try and use isDefined("rootObject.Get_ObjectName") or StructKeyExists(rootObject,"Get_ObjectName) - it just doesn't work - If I add in the () at the end - it blows up Coldfusion


      I can't just display everything because there may be elements that are empty - Has anyone else had this problem & have a solution?