Count Property (ADO)
Indicates the number of objects in a collection.
Return Value
Returns a Long value.
Remarks
Use the Count property to determine how many objects are in a given collection.
Because numbering for members of a collection begins with zero, you should always code loops starting with the zero member and ending with the value of the Count property minus 1. If you are using Microsoft Visual Basic and want to loop through the members of a collection without checking the Count property, use the For Each...Next command.
If the Count property is zero, there are no objects in the collection.
Applies To
Axes Collection (ADO MD)
Columns Collection (ADOX)
CubeDefs Collection (ADO MD)
Dimensions Collection (ADO MD)
Errors Collection (ADO)
Fields Collection (ADO)
Groups Collection (ADOX)
See Also
Count Property Example (VB)
Count Property Example (VC++)
Refresh Method (ADO)
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho