Number of record set elements and number of elements

Source: Internet
Author: User

Number of record set elements and number of elements
Author:Www.gudianxiaoshuo.com


This article is organized by the Code Assistant Software and released content is irrelevant to this software.More comfortable reading, more comfortable writing, and easier Publishing

The show-colored book and Text software is audible, readable, writeable, knowledgeable, and annotated. Coupled with the most powerful pure text color function in history, you can instantly show your book and text.








An empty column in the determination record set

_ Variant_t varValue; varValue = pRecordSet-> GetCollect (_ T ("class"); if (varValue. vt! = VT_NULL) {banjiStr = (LPCTSTR) _ bstr_t (varValue);} else continue;

Number of records

_ RecordsetPtr pRecordNum; numStr. format (_ T ("Select * from ClassInfo order by ID"); pRecordNum-> PutCursorLocation (adUseClient); // you can use GetRecordCount () to add this statement () obtain the number of records in the record set pRecordNum-> Open (LPCTSTR) numStr, m_pConnectionStu.GetInterfacePtr (), adOpenStatic, adLockOptimistic, adCmdText); if (pRecordNum-> adoBOF) return; else pRecordNum-> MoveFirst (); int num = pRecordNum-> GetRecordCount (); pRecordNum-> MoveLast ();

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.