Visualizzazione dei risultati da 1 a 2 su 2

Discussione: AbsolutePosition

  1. #1
    Utente di HTML.it
    Registrato dal
    Jan 2001
    Messaggi
    6

    AbsolutePosition

    Ciao, avete una qualche idea del motivo per cui la prorpietà Absolute position mi ritorna sempre -1?


    Connessione:
    obj_rs.Open str_sql, obj_conn,3,3

    Do while ....
    conta =obj_rs.recordcount
    posizione = obj_rs.AbsolutePosition
    loop



    molte grazie

    alex

  2. #2
    Ti posto un pezzo dell'MSDN Microsoft
    Specifies the ordinal position of a Recordset object's current record.

    Settings and Return Values

    Sets or returns a Long value from 1 to the number of records in the Recordset object (RecordCount), or returns one of the following constants.

    adPosUnknown The Recordset is empty, the current position is unknown, or the provider does not support the AbsolutePosition property.
    adPosBOF The current record pointer is at BOF (that is, the BOF property is True).
    adPosEOF The current record pointer is at EOF (that is, the EOF property is True).
    Francesco "DAG" D'Aguanno
    www.daguanno.it
    Progettazione, Realizzazione e Manutenzione siti web.

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.