Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Scatter/Gather vs. Buffering?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00220482
Message ID:
00220594
Vues:
39
Hi Steve!

Personally, I still use the scatter..gather method. Why? Because a little known fact that is often overlooked: SCATTER can create an object whose properties contain the values of the fields.

For instance:

Select MyTable
Scatter Name loData Memo

The above line of code creates what is referred to as a "data object". This object can be passed across datasessions and even through OLE channels.

Since VFP is supposed to be an OOP tool, why not make the data OO?

This has the added advantage that you could create a COM object to communicate with your back-end and pass an object back to the front end or to other COM objects as needed.

So instead of having to code two different algorithms to accomplish "buffering" in your front-end and passing data across OLE channels, you can do it in 1.

>I was told to use SCATTER and GATHER with an "m.fieldname" in my ControlSource property
>
>vs.
>
>using "mytable.fieldname" with table buffering turned on using a value of "2" for buffering
>
>because that is the preferred usage in a networking environment for sharing of records according to the person I am working with.
>
>I don't believe it. I thought SCATTER and GATHER was old technology compared to table buffering, and I would much rather use table buffering if I dare.
>
>Which way is better? I think they accomplish the same thing, but the latter seems easier to me. Thanks for clarifying.
Travis Vandersypen
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform