Search found 109 matches: addnew

Return to advanced search

New FTDN June/Junio 2013 (FWH 13.06)

... of access database, creation of table, copy from dbf and xbrowse with Add, Edit and Delete. In particular demonstrates the simplest way of using AddNew(), Update() and GetRows() methods of ADO * XBrowse: In the method SetRDD(), bSeek codeblock is created only if the programmer did not already ...
by Antonio Linares
Mon Jul 08, 2013 6:53 pm
 
Forum: WhatsNew / Novedades
Topic: New FTDN June/Junio 2013 (FWH 13.06)
Replies: 1
Views: 3017

Re: ADO question: Access is not refresing properly

... and DO NOT redefine oRs as local in that add routine. oRs Represents the data that can be passed as a parameter .. in your add routine just oRs:AddNew() ( modify your fields ) .. and oRs:Update() then oBrowse:ReFresh() .. oRs:ReQuery() is only helpful when you have a COMPLEX join in your recordset ...
by Rick Lipkin
Sun Jun 23, 2013 3:21 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: ADO question: Access is not refresing properly
Replies: 10
Views: 2846

Re: ADO question: Access is not refresing properly

Antonio,

Antonio Linares wrote:oRS:MoveLast()
oRs:AddNew()
fill the right values
oRS:Update()


You can safely remove oRS:MoveLast(). :-)

EMG
by Enrico Maria Giordano
Sun Jun 23, 2013 1:17 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: ADO question: Access is not refresing properly
Replies: 10
Views: 2846

Re: ADO question: Access is not refresing properly

Lucas,

I am using ADO + Access on a development and I don't call oRs:Requery() when adding a record and here it works fine :-)

I use:

oRS:MoveLast()
oRs:AddNew()
fill the right values
oRS:Update()
by Antonio Linares
Sun Jun 23, 2013 1:05 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: ADO question: Access is not refresing properly
Replies: 10
Views: 2846

Re: ayuda campo fecha en ado y recordset

les comento que lo tenia con un insert, pero algunas tablas tienen documentos en campos blob
y la diferencia en tiempo de la implmentacion entre insert y oRS:AddNew es muchismo,

muchas gracias por sus comentarios, continuare con esto.
by carlos vargas
Tue Jun 18, 2013 4:40 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: ayuda campo fecha en ado y recordset
Replies: 8
Views: 1472

Re: alguien tiene problemas de recursos con el fw1305 ?

... A ver si Antonio por favor lo mira y publica una nueva build (también por favor con la clase Datarow corregida, que hay dos errores, el de oRs:AddNew() y el de ayer de if IfNil(aPair[ 3 ], .t. ) .and. ! ( oField:Value == uVal ) por favor.
by lucasdebeltran
Tue Jun 11, 2013 9:23 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: alguien tiene problemas de recursos con el fw1305 ?
Replies: 6
Views: 824

Re: another error in class DataRow

... functions at olefuncs.prg and xbrowse.prg are needed. Also, I published it because I need to fix the class according to your instructions at oRs:AddNew(). I very much like the concept and design of that class.
by lucasdebeltran
Mon Jun 10, 2013 8:44 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: another error in class DataRow
Replies: 6
Views: 1760

Re: error in class DataRow

About the runtime error: This is a bug in datarow.prg. Thanks for testing and finding it out. In line 355, please change ::AddNew() as oRs:AddNew() Next question about multiiuser issues: 1. If recordset is opened with adLockOptimistic: If other user modified the same record we get a ...
by nageswaragunupudi
Sun Jun 09, 2013 5:21 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: another error in class DataRow
Replies: 6
Views: 1760

another error in class DataRow

... Pack 1 Time from start: 0 hours 0 mins 5 secs Error occurred at: 09-06-13, 12:05:44 Error description: Error BASE/1004 Message not found: TDATAROW:ADDNEW Stack Calls =========== Called from: .\source\function\HARBOUR.PRG => _CLSSETERROR( 234 ) Called from: .\source\classes\DATAROW.PRG => ...
by lucasdebeltran
Sun Jun 09, 2013 10:08 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: another error in class DataRow
Replies: 6
Views: 1760

Re: TDataRow and ADO questions

... oRec:Edit() When saved the TDataRow method appends the data to a new record. We are not conerned how TDataRow appends ( for dbf dbappend() for oRs AddNew() ) For us, the process is transparent. Customising edit dialogs: 1. Create our own procedure defining edit dialog and when oRec:Modified() is ...
by nageswaragunupudi
Thu Jun 06, 2013 11:00 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: TDataRow and ADO questions
Replies: 48
Views: 11594

Re: xbrowse+ADO NO REFRESCA EL BROWSE

... It is easier to open full child table and keep changing oRsChild:Filter. Instead of using SQL INSERT statements, it is better to use RecordSet's AddNew() method. AddNew() method automatically updates the recordset. If we use SQL INSERT statement, we need to use ReQuery() method to read the data ...
by nageswaragunupudi
Thu May 30, 2013 2:19 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: xbrowse+ADO NO REFRESCA EL BROWSE
Replies: 10
Views: 2259

Re: Saber Metodos de un CREATEOBJECT

... [in] IDispatch ) STDCALL dispatch PROPERTYPUT void Source( [in] BSTR ) STDCALL dispatch PROPERTYGET VARIANT Source() STDCALL dispatch FUNC void AddNew( [optional] VARIANT, [optional] VARIANT ) STDCALL dispatch FUNC void CancelUpdate() STDCALL dispatch FUNC void Close() 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: 32248

Re: To Mr. G. N. Rao

If you like to capture the new record values in a dialog, that is much easier and safer. You can use oBrw:oRs:AddNew() to create a blank record, offer edit in a dialog and then either save ( calling oBrw:oRs:Update()/UpdateBatch() ) or cancel append ( calling oBrw:oRs:CancelUpdate()/CancelBatch() ...
by nageswaragunupudi
Tue Apr 30, 2013 4:13 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: To Mr. G. N. Rao
Replies: 5
Views: 1237

SQL Recordset delete problem

Hi, I'm testing the delete-methode of a recordset and always get an error. If testing it with oRs:delete(1) The oRs:addnew methode is working fine. Is there a permition for deleting in a recordset that I must set. Normally I delete records with the 'DELETE FROM' command in SQL, but ...
by Marc Vanzegbroeck
Fri Nov 09, 2012 10:41 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: SQL Recordset delete problem
Replies: 10
Views: 2839

Re: MySQL - Recordset question

... without an explicit oRs:Update() Here are some typical ADO methods for adding, deleting and moving through recordsets : Append --> oRecordSet:AddNew() Close --> oRecordSet:Close() Commit --> oRecordSet:Update() Delete --> oRecordSet:Delete() Deleted() --> oRecordSet:Status == adRecDeleted ...
by Rick Lipkin
Wed Oct 10, 2012 2:30 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: MySQL - Recordset question
Replies: 2
Views: 788
PreviousNext

Return to advanced search