On Tuesday 25 August 2009 03:18:52 pm Ed Leafe wrote: > On Aug 25, 2009, at 5:41 PM, John wrote: > > First the fix. > > reportDS=dDataSet(reportDS.execute('select * from dataset')) > > This is redundant. The execute() method returns a dDataSet. No need > to wrap it in yet another layer of dDataSet. > > > The issue appeared when a special requirement for the reports came > > up. Larry > > wanted to retrieve data then delete a few of the records after > > processing and > > that left a number of records that could be batched for a second > > process. > > The criteria for the retrieved data was the same for both processes > > (so why > > make two calls). So he wanted to work with only one table. It > > sounds very > > much like a VFP way of thinking where all that was needed was a scan > > and > > process. > > > > It works and very well too. > > Maybe you guys are thinking of the filter() function of datasets? > > > -- Ed Leafe
Your right of course! It is redundant. Maybe, he'll read this and change it. No Larry really needed the record deleted. I doubt the filter would have worked - but thanks anyway. Johnf _______________________________________________ Post Messages to: Dabo-users@leafe.com Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/200908251637.17765.jfabi...@yolo.com