On Thu, 2013-08-08 at 13:21 +0200, Tobias Boege wrote: > On Thu, 08 Aug 2013, Tobias Boege wrote: > > Public Sub Analysis(iCat As Integer, aObjs As Object[]) As Analysis[] > > Dim aResult As New Analysis[] > > Dim hAnalysis As Analysis > > Dim sProp As String > > Dim hObject As Object > > Dim iValue As Integer > > > > ' Get the names of all properties in the objects which are associated with > > ' the given category (as a String[]) > > For Each sProp In aObjs[0].AssociatedProperties(iCat) > > hAnalysis = New Analysis > > hAnalysis.Name = sProp > > > > For Each hObject In aObjs > > iValue = Object.GetProperty(hObject, sProp) > > ' Do the math > > Next > > aResult.Add(hAnalysis) > > Next > > Return hAnalysis > > End > > Return aResult > > would be the correct Return statement here. > Thanks Tobi,
The Object.GetProperty was the clue I needed! regards Bruce ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user