Forum Discussion

asafa's avatar
asafa
New Contributor
14 years ago

findAll method

hi,



i have the following case:

function f1 (){



object = findAll(propertyName,property Value,20000);

// print the result array

}





i have different result when call the function several times.



any suggestion?





thanks..
  • Hi,



    FindAll can return different results because the object tree changes between its runs. Also, if you use dynamic properties like Index, you can get objects whose current values of these properties meet the search criteria.
  • asafa's avatar
    asafa
    New Contributor
    thank you,



    this is one possible reason, but this can be avoided by type "true" when calling the method.



    I found the solution. simply, use Refresh() method to get the last object structure then use the method.



    thanks again