2 Replies Latest reply on Aug 5, 2008 3:38 PM by justria

    Finding out the actual Class of an Object

    ericbelair Level 1
      I have an AdvancedDataGrid (ADG) where the top level items are instances of my custom valueObject Class "State". The second level items are instances of another custom valueObject Class - "City". When I select an item in the ADG, I want to know which Class each item is - "State" or "City". Is there some way to find this out? I'm not looking for how to capture the event, I'm wanting to find out if there is some function or utility for finding out the Class of an Object.

      FYI, when I capture the event, and pop an Alert with the following code...

      Alert.show(item.constructor.toString());

      ...I see either "[class State]" or "[class City]". So, I feel like I'm close...

      Thanks.