In function Item the return statement still has reference to aRows I think RETURN THIS.aRows.Item(lnIndex) should probably be RETURN THIS.oRows.Item(lnIndex)
Thanks Randy...
Fixed on this end for inclusion in the next update.
+++ Rick ---
You are quite welcome. I did find another issue - in the wwBusinessChildCollection.clear the only line this.oRows.ResetToDefault() gives a not enough parameters error. To fix it quick and easy I replaced it with a loop to remove all the items. Is there a better way?
Thanks...
The ChildBusiness object was a bit hurried in the last minute conversion of the wwBusinessObject
and the big issue is that I rarely use it so I don't actually have it in production anywhere where I can see it fail...
Most of the code moved over as is from the old object but obviously I missed a couple of issues.
Anyway the the Clear()
method should be:
FUNCTION Clear()
THIS.oRows = CREATEOBJECT("Collection")
ENDFUNC
Iterating over each item shouldn't be necessary as the ref count of the collection should handle that in the VFP background processing. If it's only SCATTER NAME objects or wwBusinessObject instances they should release with no issues.
+++ Rick ---