Forum Discussion

ray_mosley's avatar
ray_mosley
Frequent Contributor
10 years ago
Solved

Passing object property as parameter

I have an object which has both the PopupMenu and MainMenu properties.   I want to create a general function that will support "PopupMenu" or "MainMenu" as a parameter.  Another parameter would spe...
  • Ryan_Moran's avatar
    10 years ago

    Sounds like you'll want to check if the object supports one or the other.

    Try using aqObject.IsSupported to see which the object supports and then call the function based on this result.