On Thursday, September 16, 2010 06:56:01 am Jacek Kałucki wrote: > Użytkownik Ed Leafe napisał: > > On Sep 16, 2010, at 5:28 AM, Jacek Kałucki wrote: > >> Is there a reason to not returning value from dBizobj.scan() method? > >> > > Is there a reason for returning a value from dBizobj.scan() method? > > Lets review current methods of retrieving data from function called from > scan, I can: > - use object property, for seldom used and huge results it's the waste > of resources > - call function with mutable variable as parameter. > > Tell me, why instead of calling: > param = [] > scan(hasSomeCondition, param) > if param[0]: > do_something... > I can't use much simpler: > if scan(hasSomeCondition): > do_something... > ? First I did not know you could pass 'param' to gather data. So my understanding of the use of scan maybe completely wrong. Is that param used by the function/method to place data into?
I thought the second parameter of the scan method was to determine the direction of the scan (forward vs reverse). And I have only used the scan method as simple way to reiterate over the bizojb records. With that in mind what would the return value represent? That I completed the scan. But I don't always completely scan all records. So I guess I could use some enlightment on this subject. Johnf _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev Searchable Archives: http://leafe.com/archives/search/dabo-dev This message: http://leafe.com/archives/byMID/[email protected]
