Search found 111 matches: addnew

Searched query: addnew

by nageswaragunupudi
Tue Feb 04, 2025 3:46 pm
Forum: FiveWin para Harbour/xHarbour
Topic: Cómo Insertar registros a na tabla?
Replies: 17
Views: 35055

Re: Cómo Insertar registros a na tabla?

... oRs:Sort := "id"
for each v in { "Manzana", "Pera", "Naranja", "Mandarina", "Mango", "Banana", "Papaya", "Grape", "Guva", "Durian" }
oRs:AddNew( "fruit", v )
next

return oRs

//----------------------------------------------------------------------------//

function InsertFruits( oRs ...
by nageswaragunupudi
Mon Feb 03, 2025 10:01 pm
Forum: FiveWin para Harbour/xHarbour
Topic: Cómo Insertar registros a na tabla?
Replies: 17
Views: 35055

Re: Cómo Insertar registros a na tabla?

... oCn, "fruits" )
oRs:Sort := "id"
for each v in { "Manzana", "Pera", "Naranja", "Mandarina", "Mango", "Banana", "Papaya", "Grape" }
oRs:AddNew( "fruit", v )
next

return oRs

//----------------------------------------------------------------------------//

function InsertFruit( oRs ...
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: 8566

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

... Append( "fldDate", adDate )

END
oCat:Tables:Append( oTable )

? "created"

oRs := FW_OpenRecordSet( oCn, "select * from " + cTable )
oRs:AddNew( { "fldint", "fldtext", "fldbool", "fldDate" }, ;
{ 99, "FiveWin", .t., hb_DateTime() } )
oRs:MoveFirst()

aTypes := {}
for n := 0 to oRs ...
by jpcavagnaro
Tue Jan 10, 2023 2:01 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Guardar RTF en sql server
Replies: 4
Views: 676

Re: Guardar RTF en sql server

... dar de alta el registro 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
Fri Nov 20, 2020 8:43 pm
Forum: FiveWin para Harbour/xHarbour
Topic: Error sql server
Replies: 2
Views: 762

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 = "INSERT INTO vehiculos_fotos ([Codigo ...
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: 1939

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 MySql ...
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: 1939

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 MySql ...
by nageswaragunupudi
Sat Aug 31, 2019 4:57 am
Forum: FiveWin for Harbour/xHarbour
Topic: clarification respect a recordset
Replies: 14
Views: 4247

Re: clarification respect a recordset

... 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 ...
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: 8950

Re: To James Bott - Error Using TData

... the English version first and then the Italian one in another folder

The author is American

L egal Department
NCH Software, Inc.
6120 Greenwood Plaza Blvd
Greenwood Village CO, 80111
USA

the software is free and can be found on this site

m

there are also the snapshot ( see the invoice addnew)
by Rick Lipkin
Fri Mar 22, 2019 4:09 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Convert DBF 2 SQL
Replies: 9
Views: 3017

Re: Convert DBF 2 SQL

... in Opening CUSTOMER table 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 primary key oRsCust:Fields&#40 ...
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: 1689

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" SIZE ...
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: 1689

Error al insertar registro con Clase MariaD

... 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 :=oUni:vPropie ...
by nageswaragunupudi
Sat Jul 14, 2018 10:39 am
Forum: FiveWin para Harbour/xHarbour
Topic: Busqueda SQL
Replies: 15
Views: 3906

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 was released by Microsoft. Used with ...
by Armando
Fri Jul 13, 2018 4:46 pm
Forum: FiveWin para Harbour/xHarbour
Topic: Busqueda SQL
Replies: 15
Views: 3906

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 servicomver
Thu Jul 12, 2018 11:04 pm
Forum: FiveWin para Harbour/xHarbour
Topic: Busqueda SQL
Replies: 15
Views: 3906

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( xRfc, If( lContinue, 1, 0 ) ) //Asi marca ...