IDE Scripting: Iterate with SubLocation not working

  1. 9 months ago

    Tobias B

    12 Jan 2018 Pre-Release Testers, Xojo Pro Bern, Switzerland

    I'm trying to iterate over ProjectItems in an IDE Script. To get the possible Locations, I try to use the SubLocations function. However, I'm unable to get much out of it.


    returns the all the top level items. Calling it with the the name / path of a Folder or Module returns only the Folders, Modules and Classes within that. But nothing more. I never get any Methods, Properties, Controls. Calling it on a Window or Class does return nothing. The current documentation can be understood in a way, this is expected behaviour, while my memory and several discussion in Feedback do imply this is unexpected. I tested with Xojo 2017r3, 2017r1.1 and ancient 2014r3.2 with the same result. What am I missing? Was that changed sometime? How is a IDE Script supposed to iterate over existing methods?

or Sign Up to reply!