Search found 109 matches: addnew

Return to advanced search

Re: DBF to Excel Sheet, without Excel, using ADO ?

... oTable )   ? "created"   oRs   := FW_OpenRecordSet( oCn, "select * from " + cTable )   oRs:AddNew( { "fldint", "fldtext", "fldbool", "fldDate" }, ;               { 99, "FiveWin", ...
by nageswaragunupudi
Wed Aug 16, 2023 10:03 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: DBF to Excel Sheet, without Excel, using ADO ?
Replies: 50
Views: 2578

Re: Guardar RTF en sql server

... y luego: wvar = MEMOREAD( ".\TestRTF.RTF" ) oRsRTF := CargaRecordSet( "select * from demo1 where id = 2", CadenaCon ) oRsRTF:ADDNEW() oRsRTF:Fields( "testo" ):Value := STRTOHEX(wvar) oRsRTF:Update() oRsRTF:Close() de esta manera lo guarda sin errores. Saludos Jorge
by jpcavagnaro
Tue Jan 10, 2023 2:01 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Guardar RTF en sql server
Replies: 4
Views: 377

Error sql server

Hola, buenas tardes, alguien me puede explicar porque la forma de cargar una foto A lo hace perfecto y la B me error A: oRS1Cli:ADDNEW() oRs1Cli:Fields( "foto" ):Value := STRTOHEX( MEMOREAD( "foto.jpg")) B: jj := STRTOHEX( MEMOREAD( "foto.jpg" )) sqldetl = ...
by jpcavagnaro
Fri Nov 20, 2020 8:43 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Error sql server
Replies: 2
Views: 627

Re: How to copy a row of a rowset

... ... colNvalue } }  If you want to insert the data into another existing RowSet with identical structure, you can do it using oRs2:AddNew( aFields, aRows[ 1 ] ) } But you can not create a new rowset in memory with this data. A RowSet can be created ONLY by reading data from the ...
by alvaro533
Tue Mar 31, 2020 10:02 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to copy a row of a rowset
Replies: 14
Views: 1475

Re: How to copy a row of a rowset

... ... colNvalue } }  If you want to insert the data into another existing RowSet with identical structure, you can do it using oRs2:AddNew( aFields, aRows[ 1 ] ) } But you can not create a new rowset in memory with this data. A RowSet can be created ONLY by reading data from the ...
by nageswaragunupudi
Fri Mar 27, 2020 9:29 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to copy a row of a rowset
Replies: 14
Views: 1475

Re: clarification respect a recordset

... server and holds it in the client's memory. We normally open recordsets using adLockOptimistic . All calls to the methods Update(), Delete() and AddNew( aCols, aVals ) make the changes to the underlying database immediately and are visible to other users on the network. We can also open the recordset ...
by nageswaragunupudi
Sat Aug 31, 2019 4:57 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: clarification respect a recordset
Replies: 14
Views: 3304

Re: To James Bott - Error Using TData

... CO, 80111 USA the software is free and can be found on this site https://www.nchsoftware.com/invoice there are also the snapshot ( see the invoice addnew)
by Silvio.Falconi
Wed May 29, 2019 4:07 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: To James Bott - Error Using TData
Replies: 49
Views: 5123

Re: Convert DBF 2 SQL

... here" )   RETURN(.F.)END TRYSelect 1Use Customer via "DBFCDX" EXCLGo topDO while .not. eof()           oRsCust:AddNew()     oRsCust:Fields("CustomerEid"):Value  := "011111111111111111"  // generate any random number for your ...
by Rick Lipkin
Fri Mar 22, 2019 4:09 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Convert DBF 2 SQL
Replies: 9
Views: 2557

Re: Error al insertar registro con Clase MariaD

... local oDlg,lSalvar := .f.,vcodigo:=space(21),vnombre:=space(33) local lSaved := .f. IF lNuevo oRs:AddNew() ENDIF DEFINE DIALOG oDlg SIZE 500,210 PIXEL ; TITLE "Prueba de la Clase Fwh mariadb" oDlg:lHelpIcon := .f. @ 20, 20 SAY "Codigo" ...
by Adolfredo Martinez
Tue Feb 19, 2019 12:07 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Error al insertar registro con Clase MariaD
Replies: 10
Views: 1274

Error al insertar registro con Clase MariaD

... presenta cuando estoy adicionando un registro. Cambio la estructura de los campos que estan en Null a Not Null tampoco. Asi: IF lNuevo oRsResolu:AddNew() ENDIF oRsResolu:Fields("CODIGO"):value :=oUni:vCodigo-------->AQUI GRABA BIEN ESTE CAMPO oRsResolu:Fields("NOMIP01"):value ...
by Adolfredo Martinez
Sat Feb 16, 2019 11:43 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Error al insertar registro con Clase MariaD
Replies: 10
Views: 1274

Re: Busqueda SQL

Servicomver: Ya entrados en gastos, te recomiendo que no uses la función oRs:AddNew() + oRs:Update(), mas adelante te puedes encontrar con pequeños problemas, en su lugar utiliza los comandos INSERT INTO y UPDATE. Saludos I have been using ADO from the time it ...
by nageswaragunupudi
Sat Jul 14, 2018 10:39 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Busqueda SQL
Replies: 15
Views: 3081

Re: Busqueda SQL

Servicomver:

Ya entrados en gastos, te recomiendo que no uses la función oRs:AddNew() + oRs:Update(), mas adelante
te puedes encontrar con pequeños problemas, en su lugar utiliza los comandos INSERT INTO y UPDATE.

Saludos
by Armando
Fri Jul 13, 2018 4:46 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Busqueda SQL
Replies: 15
Views: 3081

Busqueda SQL

Para ingresar un registro en una Tabla SQL hago: oRecordSet:Addnew() oRecordSet:Fields("Bill_num"):value := alltrim(Var1) oRecordSet:Update() Para borrar: oRecordSet:Delete() oRecordSet:Requery() Como seria para buscar la Variable xRFC ?? oRecordSet:Find( ...
by servicomver
Thu Jul 12, 2018 11:04 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Busqueda SQL
Replies: 15
Views: 3081

Re: Autoincrement field for DBFCDX

... .. cSQL += "CONSTRAINT PK_INVOICEDETAIL PRIMARY KEY ( InvDetailEid )" This will create an auto-increment field meaning when you do a oRs:AddNew() you do not have to address the auto-increment field ( InvDetailEid ) by code .. the RDMS automatically assigns the value. That can be a blessing ...
by Rick Lipkin
Sat Mar 24, 2018 2:51 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Autoincrement field for DBFCDX
Replies: 9
Views: 1747

Re: Test for Vertical Scroll hits EOF xBrowse ( rao )

... nKey != nil and is not already appending bPastEof would look like this: Code: :bPastEof := { |o,k| If( lAppending .or. k == nil, nil, ( oBrw:oRs:AddNew(), lAppending := .t., oBrw:Refresh() ) ) } Obviously you will have to evaluate K for the Keydown ... something like this ? :bPastEof := { ...
by Rick Lipkin
Sat Feb 10, 2018 6:44 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Test for Vertical Scroll hits EOF xBrowse ( rao )
Replies: 14
Views: 6034
Next

Return to advanced search