cual es la diferencia entre el BOF y EOF?
en que caso se ocupa una o la otra?
gracias
| ||||
Son practicos para recorer un record set... por ejemplo si tu record set se llama: rsTest entonces para evitar un error al recorrerlo escribes: If rsTest.BOF and rsTest.EOF Then ... lo recorres ... Else ... no devolvio nada tu sentencia SQL ... End If
__________________ http://www.coaxservices.com |
| ||||
Pues no se, suena lógico que sea Begin y End, aunque buscando estas propiedades, lo normal a encontrar es: Cita: Aunque para el caso da lo mismo, se entiende. BOF, EOF Properties BOF — Indicates that the current record position is before the first record in a Recordset object. EOF — Indicates that the current record position is after the last record in a Recordset object. ![]() |
| |||
Esta informacion la encontre en el link que dejo abajo... esto aclara la interrogante que se presento, pero basicamente su uso se explica en comentarios anteriores, Saludos. (Beginning Of File) The status of a file when it is first opened or when an instruction or command has reset the file pointer. http://computing-dictionary.thefreedictionary.com/BOF (End Of File) The status of a file when its end has been reached or when an instruction or command resets the file pointer to the end. http://computing-dictionary.thefreedictionary.com/EOF |
| |||
Aqui tambien hay informacion referente a sus propiedades, es algo util y tiene un ejemplo http://www.w3schools.com/ado/prop_rs_bofeof.asp Saludos |