Help Center

CADOFields.Countproperty

Retrieves the number of objects in the `Fields` collection.

DatabasespropertyCADOFields.incdocumented

Syntax

PROPERTY Count () AS LONG

Return value

The number of objects in the Fields collection.

Description

Retrieves the number of objects in the Fields collection.

Remarks

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 the Count property is zero, there are no objects in the collection.

Reference

  • Include file CADOFields.inc
  • Defined in AfxNova/CAdoFields.inc:483
  • Documented in Databases/ADO Classes/CAdoFields Class.md
  • Topic: CAdoFields Class