Function SelectObject not working?

Version 1

    Hello all

    Seems to me that the function

    Function SelectObject(ObjectType As VdObjectType, Expression As String, SelectOwner As Boolean, RegExp As Boolean, AddSelect As Boolean) As Long

     

    is not working. Reply is always 0.   My purpose is to find a component and the relating schematic sheet opens.

    Any idea?

     

    Thx. a lot