Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Scatter Gather problem
Message
From
03/05/2004 22:03:53
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00900498
Message ID:
00900579
Views:
21
As Tracy suggested, I would try SCATTER NAME.

If it works, you have additional advantages, like, you can access individual components by name, like this:
use client
scatter name loRecord
? loRecord.FirstName, loRecord.LastName
>I'm having an issue with scatter and gather where data is dropping off. I am scattering data from a table that is in a database and gathering into a free table that must remain free. Their are 250 fields total. Some of the fields are long so I had to use the replace statement to update those.
>
>This was working for a long time but it seems that my problem occured recently as I've been adding more fields (short field names, matching field name, etc.) to both the database table and free table. Could this be a issue with a memory limitation or the limits of scatter/gather?
>
>I'd love to use scatter to laArray Memo AND Gather From laArray Memo but I cannot guarentte that the field names, types, length are in order/same in both the database table and the free table.
>
>Could I just replace:
>
>
>select <destimation>
>append blank
>gather memvar memo
>
>
>WITH...
>
>
>select <destimation>
>scatter memo memvar
>INSERT INTO <table name> FROM MEMVAR
>
>
>Does INSERT INTO work better thatn gather memvar memo?
>
>This was a project that I inherited from a client that a prior programmer started and the EXE/Database/Free Tables are running at multiple locations.
>
>I am using VFP 6 and any help would be greatly appreciated to resolve my issue.
>
>Regards,
>Torrey
>
>
>
>CODE SAMPLE I AM USING:
>
>
>select <source>
>scatter memo memvar
>
>select <destimation>
>append blank
>gather memvar memo
>
>replace sdoor1_loose with <source>.sdoor1_loo
>replace sdoor2_loose with <source>.sdoor2_loo
>replace sdoor3_loose with <source>.sdoor3_loo
>replace sdoor4_loose with <source>.sdoor4_loo
>
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform