Search found 38 matches: abuffer

Return to advanced search

Re: Clase TTABLE insertar Registros en Tablas SQL Lexico XBASE

... DEFAULT oDataBase:=oDb RETURN TTable():New(cSql,lLoad,oDataBase) CLASS Ttable DATA oDataBase DATA oCursor DATA lAppend INIT .T. DATA aBuffer INIT {} DATA cWhere INIT "" DATA cTable DATA cSql DATA cSqlExec INIT "" METHOD New(cSql,lLoad,oDataBase) CONSTRUCTOR METHOD ...
by Compuin
Mon Nov 12, 2018 8:56 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Clase TTABLE insertar Registros en Tablas SQL Lexico XBASE
Replies: 15
Views: 3666

How to validate dates in a corrupted database

... skips to the record, apparently it does not like one of the values in the date fields it sees. It fails at line 1048: for n = 1 to Len( ::aBuffer ) ::aBuffer[ n ] = ( ::cAlias )->( FieldGet( n ) ) next SO ... Any thoughts on a strategy here to trap in invalid date existing in a field ...
by TimStone
Fri Oct 06, 2017 1:22 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to validate dates in a corrupted database
Replies: 9
Views: 1378

New FTDN September/Septiembre 2017 (FWH 17.09)

... if cFilter is nil, no action - New: ClearFilter() clears filter - New: ReIndex() - New Data: nBufRec. Represents recno() corresponding to the oDbf:aBuffer in memory. When oDbf:Blank() is called, this value is Zero. - Hint: If the programmers wants to copy data of one record and paste to another ...
by Antonio Linares
Wed Oct 04, 2017 7:43 pm
 
Forum: WhatsNew / Novedades
Topic: New FTDN September/Septiembre 2017 (FWH 17.09)
Replies: 3
Views: 3334

TDatabase FWH 17.08 : Datas and Methods

DATAS 1. aBuffer ( ReadOnly Type: "A" ): Array holding the field values of the current record when ::lBuffer is .T. 2. aFldNames ( ReadOnly Type: "A" ): Array containing field names of DBF 3. aStruct ( ReadOnly ...
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: 1782

Clase TTABLE insertar Registros en Tablas SQL Lexico XBASE

... DEFAULT oDataBase:=oDb RETURN TTable():New(cSql,lLoad,oDataBase) CLASS Ttable DATA oDataBase DATA oCursor DATA lAppend INIT .T. DATA aBuffer INIT {} DATA cWhere INIT "" DATA cTable DATA cSql DATA cSqlExec INIT "" METHOD New(cSql,lLoad,oDataBase) CONSTRUCTOR METHOD ...
by jnavas
Mon Mar 09, 2015 7:14 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Clase TTABLE insertar Registros en Tablas SQL Lexico XBASE
Replies: 15
Views: 3666

Re: a very strange problem

Tim, You can also check to see if oRecord:load() is returning .f. This would indicate that the aBuffer array hasn't been loaded. The only reason I can see that it wouldn't be loaded is that the parent table has been closed. However, if the parent table (database) was closed ...
by James Bott
Fri Feb 27, 2015 4:57 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: a very strange problem
Replies: 7
Views: 1358

Re: a very strange problem

Tim, TRecord's aBuffer array must be empty. The only way I can see that this would happen is the TData's aBuffer is empty and that is inherited from TDatabase. Perhaps you can confirm this by adding a temp button to display one of ...
by James Bott
Fri Feb 27, 2015 3:39 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: a very strange problem
Replies: 7
Views: 1358

Re: Clase TDb o TDatabase....cual usar?

#INCLUDE "FIVEWIN.CH" // ------------------------------------------------------------------- // CLASS TBookMark DATA cAlias DATA aBuffer DATA aFld DATA oDb DATA nRecno DATA cnIndex METHOD New() CONSTRUCTOR METHOD Set() END CLASS // ------------------------------------------------------------------- ...
by Compuin
Thu Feb 28, 2013 7:38 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Clase TDb o TDatabase....cual usar?
Replies: 10
Views: 2794

Re: Clase TDb o TDatabase....cual usar?

... CLASS TDb DATA nArea AS NUMERIC INIT 0 DATA lBuffer DATA lShared AS LOGICAL INIT .t. DATA aBuffer DATA bBoF, bEoF, bNetError AS CODEBLOCK DATA cAlias, cFile, cDriver AS String INIT "" DATA lReadOnly AS LOGICAL INIT .f. DATA lOemAnsi ...
by Compuin
Thu Feb 28, 2013 6:28 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Clase TDb o TDatabase....cual usar?
Replies: 10
Views: 2794

Re: records disappear

... Have you checked what happens when you compare the same record number between the file copy and the actual file ? If you use DATABASE class with aBuffer , It happens sometime that the record pointer changes ( for example in a browse ) and executes an update on a different record . Checks whether ...
by Maurizio
Thu Jan 24, 2013 1:45 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: records disappear [solved]
Replies: 41
Views: 6669

Re: database object

Hello Antonio, if I check immediately afte assigning ::abuffer in METHOD Blank() ( ::cAlias )->( FieldGet( 1 ) ) returns the value of the first record in the database. Are you sure modified is working if you add a record using blank() Best regards, ...
by Otto
Thu Nov 15, 2012 4:53 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: database object
Replies: 12
Views: 2212

Re: database object

... "FieldGet", ::FieldGet( 1 ) } ) for n := 1 to Len( ::aFldNames ) if ! ( ::cAlias )->( FieldGet( n ) ) == ::aBuffer[ n ] msginfo(( ::cAlias )->( FieldGet( n ) )) msginfo(::aBuffer[ n ]) return .t. endif next return .f.
by Otto
Thu Nov 15, 2012 4:19 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: database object
Replies: 12
Views: 2212

Re: database object

... METHOD Modified() CLASS TDataBase local n if ::lBuffer for n := 1 to ( ::nArea )->( FCount() ) if ! ( ::cAlias )->( FieldGet( n ) ) == ::aBuffer[ n ] return .t. endif next endif return .f.
by Otto
Thu Nov 15, 2012 11:53 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: database object
Replies: 12
Views: 2212

Re: Undo

... with any data file. However, a disadvantage of this method is that you have to use an array reference which is hard to understand later. E.G.: aBuffer:= scatter() redefine get var aBuffer[3] A much better approach is to use a database object. Database objects are also generic and can be used ...
by James Bott
Thu Jan 14, 2010 6:03 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Undo
Replies: 7
Views: 1473

Re: Again xBrowse and new line from TDatabase

... I was trying to explain. You can add a blank record to a TDatabase object but you cannot display it in the browse. Then blank is just an empty aBuffer so you cannot see it by doing a goBottom() because there is no blank record. Going to the bottom will load that last record into aBuffer for ...
by Rimantas
Mon Oct 19, 2009 5:25 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Again xBrowse and new line from TDatabase
Replies: 12
Views: 3107
Next

Return to advanced search