Search found 54 matches: scatter

Return to advanced search

Re: xBrowse & SELECT parameter

... an old FiveWin-Clipper app. I used (until today in smal systems) to load the DBF into an Array and after the dialog, load it back to DBF (scatter & gather functions). Would be a lot of work rewrite it to use TDatabase In the newest systems, I am using TDatabase extesively. Regards, ...
by Euclides
Mon Mar 23, 2015 2:18 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: xBrowse & SELECT parameter
Replies: 10
Views: 2318

Re: Very strange indexing problem

... oCustomer:Address Which is pretty clear. Much more clear than something like cCUADR. Also, when using the above syntax, you eliminate all the scatter/gather code and just assign data directly to the database object. Note that the data is being assigned to a buffer so you can cancel the transaction ...
by James Bott
Thu Dec 18, 2014 1:16 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Very strange indexing problem
Replies: 27
Views: 5767

Re: Copy or paste one record

... but no error will occur. You can also pass a record number so that you can take 1 record and update another record in the same database. aData := scatter() // Select other database // Append blank or lock record gather( aData ) function scatter( nRecNo )   local nFldCount := ...
by Gale FORd
Fri Dec 05, 2014 11:09 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Copy or paste one record
Replies: 12
Views: 5476

Re: Copy or paste one record

Hello Michel.
To 'copy' and ´paste' database records I use the array-field functions SCATTER & GATHER with option for field checking.
I you want, I can post them here.
HTH & regards, Euclides
by Euclides
Fri Dec 05, 2014 4:07 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Copy or paste one record
Replies: 12
Views: 5476

XBrowse with Add,Modify,Delete methods (13.07)

... care of all. It may look simple, but you can find any postings seeking advice on these issues. Edit: All of us are used to implement some kind of scatter/gather systems to edit the field values in dialogs. Obviously these methods differ for different datasources. Now we have TDataRow class which ...
by nageswaragunupudi
Sun Sep 08, 2013 6:36 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: XBrowse with Add,Modify,Delete methods (13.07)
Replies: 5
Views: 3539

Re: class TDatabase and ADO

... of TDatabase class for ADO. TDataRow is completely generic for any datasource, be it DBF, Ado, etc. It is basically a class to handle Gather/Scatter mechanism to edit existing or new records and can be used transparently without regard to the underlying datasource. Lucas, actually while using ...
by nageswaragunupudi
Wed Jul 17, 2013 12:18 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: class TDatabase and ADO
Replies: 17
Views: 5083

Re: oDbf:modified() no regresa a .F. después de guardar el reg.

I suppose you are using FWH13.05 For scatter/gather FWH provides two alternatives. 1. You can use Tdatabase class. 2. If you continue using DBF directly, you can use TDataRow class. TDatabase class: For the problem you pointed out in this post ...
by nageswaragunupudi
Fri Jun 21, 2013 5:44 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: oDbf:modified() no regresa a .F. después de guardar el reg.
Replies: 5
Views: 1249

Re: oDbf:modified() no regresa a .F. después de guardar el reg.

Then I should wait until your next release. It is impossible for me to do it that way since I have my own Scatter and Gather beside (and above) those provided by Odbf and it will be a nightmare to reload data and gather in my 230 variables anew (has to do with Dbase field limitations ...
by ellano
Fri Jun 21, 2013 5:26 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: oDbf:modified() no regresa a .F. después de guardar el reg.
Replies: 5
Views: 1249

Re: TDataRow and ADO questions

Class TDataRow -------------- Class TDataRow simplifies the scatter/gather process of the field values of a single record of a table for purposes of editing/appending. This class can read all or specified field values from a single row of DBF table,ADO ...
by nageswaragunupudi
Thu Jun 06, 2013 11:00 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: TDataRow and ADO questions
Replies: 48
Views: 11585

Re: Create New Record Access

Hi Rick

I have got my first little bit working - adding , deleting and updating records - I am trying to write
generic gather and scatter routines now. Any tips welcome. :- )

Cheers

Colin
by Colin Haig
Tue Feb 05, 2013 4:41 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Create New Record Access
Replies: 5
Views: 975

Re: hash with (x)harbour - knowledge base

Hi all; I use hashes a lot. Never had a problem. The sample Maurizzio shows is a good one. In essence, with his scatter you can refer to an array entry using syntax like : ?aVar[ LASTNAME ] to show what's in the buffer for oCust:LASTNAME. Clearly using the aforementioned syntax ...
by reinaldocrespo
Mon Sep 27, 2010 1:43 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: hash with (x)harbour - knowledge base
Replies: 20
Views: 7817

Re: hash with (x)harbour - knowledge base

MAurizio, I don't see where you are using a hash? Did you know that the equivalent of scatter and gather is built into database objects. And instead of refering to aVars[1], you can refer to oCust:name. This makes the code much easier to write and read. There are lots ...
by James Bott
Tue Sep 21, 2010 11:20 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: hash with (x)harbour - knowledge base
Replies: 20
Views: 7817

Re: hash with (x)harbour - knowledge base

Hello Otto I use Hash for manage the database Function Scatter() Local aVars := {=>} LOcal nField := FCount() LOcal nX := 1 FOR nX := 1 TO nField aVars[FIELDNAME(nX)] := FieldGet(nX) NEXT Return aVars Function Gather(aVars) lOCAL Nx := 1 FOR Nx := ...
by Maurizio
Tue Sep 21, 2010 7:06 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: hash with (x)harbour - knowledge base
Replies: 20
Views: 7817

Re: Undo

... and to save the data from the variables into the record. cName:= field->name redefine get var cName A better and generic way is to use Scatter() and Gather() functions. Scatter puts data from all the fields of a record into an array and Gather puts all the data from the array into the ...
by James Bott
Thu Jan 14, 2010 6:03 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Undo
Replies: 7
Views: 1481

Source not compiling.

... "syntax error at '['" Error E0030 Syntax error: "syntax error at '['" Under Clipper 5.2e they compile with no problems. // Scatter / Gather #include "Dbstruct.ch" #translate Gather(<a>) => AEVAL(<a>, {|x, i| FIELDPUT(i, <a>\[i\]) }) FUNCTION ...
by HunterEC
Tue Nov 17, 2009 4:23 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Source not compiling.
Replies: 3
Views: 610
PreviousNext

Return to advanced search