![]() |
ReleaseItem error |
Post Reply ![]() |
Author | |
yayo ![]() Groupie ![]() ![]() Joined: 22 December 2006 Location: Korea, South Status: Offline Points: 28 |
![]() ![]() ![]() ![]() ![]() Posted: 03 February 2009 at 12:38am |
prev code:
void CXTPReportControl::ReleaseItem(int nIndex)
{ int i; for (i = 0; i < m_pRecords->GetCount(); i++) modified code : void CXTPReportControl::ReleaseItem(int nIndex)
{ int i; for (i = 0; i < m_pRecords->GetCount(); i++)
{ CXTPReportRecord* pRecord = m_pRecords->GetAt(i); //yayo pRecord->ReleaseItem(nIndex); //pRecord->m_arrItems[nIndex]->InternalRelease(); //pRecord->m_arrItems.RemoveAt(nIndex); } add code :
XTPReportRecord.h
void ReleaseItem(int nIndex);
XTPReportRecord.cpp
// yayo
void CXTPReportRecord::ReleaseItem(int nIndex) { for(int j=0; j<GetChilds()->GetCount(); j++) { CXTPReportRecord* pChildRecord = GetChilds()->GetAt(j); pChildRecord->ReleaseItem(nIndex);
} m_arrItems[nIndex]->InternalRelease();
m_arrItems.RemoveAt(nIndex); } |
|
hi
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |