Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Scatter field!!
Message
From
05/06/1997 13:17:40
Matt Mc Donnell
Mc Donnell Software Consulting
Boston, Massachusetts, United States
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00035241
Message ID:
00035243
Views:
30
>When you 'scatter field' from one table and then 'append' to another table, does the order of the field name from both tables matter??
>
>
>select temp
>
>scatter field like lastname, firstname to array
>select table
>append blank
>gather from array
>
>if I have the field name revert (firstname come first) in 'table' does it screw up the lastname and the firstname??

If you scatter to/gather from array, the order does matter.

But don't use gather anyway...and don't use field skeletons either.

Try something like this...

SCATTER FIELDS field2, field1, field4 TO array
SELECT newtable
APPEND FROM ARRAY array FIELDS fielda, fieldb, fieldc

HTH
Matt McDonnell
...building a better mousetrap with moldy cheese...
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform