Search found 62 matches: movenext

Return to advanced search

Moverse a un registro especifico (SOLUCIONADO)

Amigos del foro:

En un record set tenemos los comandos

oRs:MoveFirst()
oRs:MoveLast()
oRs:MoveNext()
oRs:MovePrevious()

La pregunta, existe el comando para moverse a un registro especifico?, algo como
oRs:Move(30) <===== movernos al registro 30

Saludos
by Armando
Thu Nov 02, 2023 2:11 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Moverse a un registro especifico (SOLUCIONADO)
Replies: 3
Views: 215

Position in ADO Recordset

hi,

i can use ADO Method MoveFirst, MoveLast, MoveNext and MovePrevious to move to a Position but how to get the actual "Position" in ADO Recordset :?:
RECNO() does not work with EXCEL ...

how to find out how many ROW Recordset have :?:
by Jimmy
Sat Jun 10, 2023 11:50 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Position in ADO Recordset
Replies: 3
Views: 238

Re: Procedimiento almacenado adolib

... Aadd(Arayx,{_Rds_:Fields('Documento'):Value, ; _Rds_:Fields('Apellido'):Value, ; _Rds_:Fields('Nombre'):Value, ; _Rds_:Fields('_'):Value}) _Rds_:MoveNext() Enddo _Rds_:Close() _Cnx_:Close() Return(Nil) // **********************[ JACGSOFT ]************************** // Function Connect_Sql(_Cnx_,_Usu_,_Cla_) ...
by jacgsoft
Mon Oct 03, 2022 9:56 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Procedimiento almacenado adolib
Replies: 1
Views: 358

Re: MULTISELECT RECORDSET

Thanks for your help .

Here is the code that work for me .

oRs:Filter := oLbx:aSelected
oRs:MoveFirst()
do while !oRs:Eof()
msgalert(oRs:Fields(1):Value)
oRs:MoveNext()
enddo

Thanks

Philippe
by Jack
Sat Jun 26, 2021 8:59 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: MULTISELECT RECORDSET
Replies: 3
Views: 447

Re: Insertar registros en un Dbf desde tabla MSAccess

... VPP3:=ALLTRIM(VPP3) ENDIF APPEND BLANK REPLACE c1_DBF WITH ALLTRIM(STR(VPP1)) ,; c2_DBF WITH ALLTRIM(STR(VPP2)) ,; c3_DBF WITH ALLTRIM(VPP3) oRset:MoveNext() ENDDO oRset:Close() SELECT 1 USE
by RBLANCO
Tue Apr 16, 2019 11:53 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Insertar registros en un Dbf desde tabla MSAccess
Replies: 3
Views: 762

Re: Convert DBF 2 SQL

... .. again, Rao has simplified a lot of this .. but you still need to understand the methods for cursor movement .. addNew, find, filter, update,movenext, movetop, eof, bof .. etc .. notice there is no need for record locking .. the ole provider handles all of that. Rick Lipkin
by Rick Lipkin
Fri Mar 22, 2019 4:09 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Convert DBF 2 SQL
Replies: 9
Views: 2557

Error en SQL

... cOCUPACION := oRecordSet:Fields("ocupacion"):value MSGINFO(CRFC + CRLF + CNOMBRE + CRLF + CCORREO + CRLF + COCUPACION) oRecordSet:MoveNext() Enddo EndIf Return NIL Veo todos los registros sin problema de la tabla Usuarios SQL, el problema es para agregar datos: Var1:="AAA0100101FFF" ...
by servicomver
Thu Jan 25, 2018 9:12 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Error en SQL
Replies: 3
Views: 1063

TDatabase FWH 17.08 : Datas and Methods

... as ::Skip( n ). This method is created for compatibility with ADO syntax 62. MoveFirst() Same as GoTop(). 63. MoveLast() Same as GoBottom() 64. MoveNext() Same as Skip( 1 ) 65. MovePrevious() Same as Skip( -1 ) 66. OemToAnsi() Internal Internally used when ::lOemToAnsi is set to .T. 67. OrdDescend( ...
by nageswaragunupudi
Fri Sep 15, 2017 12:50 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: TDatabase FWH 17.08 : Datas and Methods
Replies: 1
Views: 1783

Re: FWH: MySql/MariaDB: RowSet object

... to the same record even after sorting and / or filtering, if the record is not deleted. GoTop(), GoBottom(), Skip( n ) MoveFirst(), MoveLast(), MoveNext(), MovePrevious(), Move( n ) Work similar to DBF and RecordSet, navigating in the sorted order, respecting filters. OrdKeyCount(), OrdKeyNo(), ...
by nageswaragunupudi
Thu Jul 21, 2016 11:56 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: FWH: MySql/MariaDB: RowSet object
Replies: 51
Views: 19551

New FTDN (July) 2014 (FWH 14.07)

... ):Value // also works compatible with ado oRs:GoTop(), GoBottom(), etc methods also can be used in addition to MoveFirst(), MoveNext(), etc. - No need to check if the recordset is empty or not while using the navigation methods. // TDATABASE syntax oRs := TRecSet():New( , ...
by Antonio Linares
Mon Aug 04, 2014 6:41 am
 
Forum: WhatsNew / Novedades
Topic: New FTDN (July) 2014 (FWH 14.07)
Replies: 3
Views: 3113

Re: ADO RecordSet Fetch() ?

... fetched all records. No more records else for n := 1 to oRs:Fields:Count() aRow[ n ] := oRs:Fields( n - 1 ):Value next n AAdd( aData, aRow ) oRs:MoveNext() endif If you like, I give you here a shortcut code for the above: if ! oRs:Eof()   AAdd( aData, oRs:GetRows( 1, 0 )[ ...
by nageswaragunupudi
Sun Jul 28, 2013 8:53 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: ADO RecordSet Fetch() ?
Replies: 21
Views: 6501

Re: Oracle via ADO/ODBC

... stod( substr( ttos( tDate ), 1, 8 ) ))  As far as ADO .. the code is the same AddNew(), Update(), MoveNext(), etc. One thing you will have to know .. when you create your Sql statements .. Ms Access uses a # sign to delimit the Date variable and ...
by Rick Lipkin
Thu Jul 18, 2013 4:10 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Oracle via ADO/ODBC
Replies: 19
Views: 6032

Re: TDataRow and ADO questions

...  := {}oRs:MoveFirst()do while ! oRs:Eof()   AAdd( aTipos, oRs:Fields( "TIPO" ):Value )   oRs:MoveNext()enddooRs:MoveFirst()  Now let us see if we have better alternatives. Recordset has a method GetRows() which reads entire record ...
by nageswaragunupudi
Wed Jun 05, 2013 8:19 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: TDataRow and ADO questions
Replies: 48
Views: 11549

Re: Saber Metodos de un CREATEOBJECT

... int, [optional] VARIANT, [optional] VARIANT ) STDCALL dispatch FUNC void Move( [in] USERDEFINED, [optional] VARIANT ) STDCALL dispatch FUNC void MoveNext() STDCALL dispatch FUNC void MovePrevious() STDCALL dispatch FUNC void MoveFirst() STDCALL dispatch FUNC void MoveLast() STDCALL dispatch FUNC ...
by Antonio Linares
Sun May 12, 2013 5:20 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Saber Metodos de un CREATEOBJECT
Replies: 62
Views: 32147

Re: Pregunta de ADO

Ruben,

Por que utilizas un array si te puedes mover perfectamente con los metodos MoveNext, MovePrevius MoveFirts y MoveLast ??

Slds
by nnicanor
Fri Mar 22, 2013 10:18 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Pregunta de ADO
Replies: 1
Views: 550
Next

Return to advanced search