高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】iterator or blocktablerecord entity coun
iterator or blocktablerecord entity count?
iterator or blocktablerecord entity count?
this is a pretty inane question. i'm just looking for a ->count() method for the iterator of a block, or perhaps of the block itself. currently i'm stuck looping twice, once for the counter, the other time for the actual code. i need the count for a progress bar, not for the actual loop.
help isn't of much use, except for the "reference count", but this doesn't tell me much. please help me out!
thanks in advance.
function returning number of entities in block is available only in activex (actualy it iterates the block entities to get their count).
btw for progress meter oddbdatabase::approxnumobjects() function may be usefull.
sergey slezkin
thanks for the info. leave it to sergey! guess i'll just loop twice, since i don't need to know the number of objects in the db, i need particular counts such as attribs, entities, etc. but thanks for the suggestion.
anyway could you possibly tell me a bit more on what exactly this referencecount() is all about.
|