Forum Discussion

DenisMedvedev's avatar
DenisMedvedev
Contributor
9 years ago
Solved

How to skip unable to find object error?

I'm trying to use bellow options for getting value from text fields, because I'm not sure which option will return me value.   obj["wText property"] obj.getText().OleValue But I have "unable to fi...
  • tristaanogre's avatar
    tristaanogre
    9 years ago

    My bad... I see you already tried that.

     

    I'll confess, I'm unfamiliar with the syntax that you're using.  However, what it looks like is you're trying to determine whether or not the wText property is available on the object.  Have you considered using aqObject.IsSupported?  You could then put logic in to do something like

     

    if aqObject.IsSupported(obj, "wText") then
    {
        obj.getText().OleValue
    }

    Or something like that... The idea is that you're trying to figure out which property to use for getting the text. So, use a method available to determine if the property is supported and work with that.