Forum Replies Created
- AuthorPosts
- sameenaParticipant
Hi Yes I thought it would be a great function like Clippers various functions but it does not work.
From http://www.codeproject.com/ Caution The record count is maintained as a “high water mark” the highest-numbered record yet seen as the user moves through the records. The total number of records is only known after the user has moved beyond the last record. For performance reasons, the count is not updated when you call MoveLast. To count the records yourself, call MoveNext repeatedly until IsEOF returns nonzero. Adding a record via CRecordset:AddNew and Update increases the count; deleting a record via CRecordset::Delete decreases the count.”You open the databae set a filter and cannot query the database using GetRecordCount(). You have to move beyond the last record for some reason.
Thanks for your help
MegaCsameenaParticipantHi
You should find the information you need here:-
http://www.codeguru.com/cpp/tic/tic_c.shtmlThe this pointer indentifies the object instance that called a function whereas VPTR seems to be similar in construction but applies to virtual functions and has to do with binding…
Good luck on that one :)
MegaCsameenaParticipantHi Gentlemen
Thanks for the help. I had tried the itao function but did not provide correct parameters. However this is the solution I came up with:-123456<br />int iNumRecords=400;<br />//CString m_sCountText=iNumRecords;<br />CString m_MyTex;<br />//s.Format(_T("%d"), total);<br />m_MyTex.Format(_T("%d"),iNumRecords);Apparrently you can do this and other wonderful things with the CString class :)
Thanks again
MegaC - AuthorPosts