The BOF property returns True (-1) if the current record position is before the first record in the Recordset, otherwise it returns False (0).
The EOF property returns True (-1) if the current record position is after the last record in the Recordset, otherwise it returns False (0).
Note: The BOF and EOF properties are set to True if you open an empty Recordset. RecordCount property is zero.
Note: If a Recordset holds at least one record, the first record is the current and the BOF and EOF properties are False.

本文深入探讨了BOF(Before First)和EOF(End Of File)属性在数据库记录集操作中的作用,解释了它们如何用于判断当前记录位置与记录集首尾的关系,特别强调了在空记录集情况下的行为。通过实例演示,帮助开发者掌握这两个属性的正确使用方法。
611

被折叠的 条评论
为什么被折叠?



