Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Array manipulation
Message
 
 
To
27/08/2003 15:26:00
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00823913
Message ID:
00823919
Views:
18
Charles,

Instead of keeping original arrays, create a cursor with 2 fileds: pk and DisplayValue and use APPEND FROM ARRAY to move data from achoices array into it. Do the same after mover but with new cursor. After that you can use queries to get what you need.

>I am using a mover based on 2 dimensional arrays. (a display value and an underlying pk)
>
>I go into the mover with two arrays - achoices and aselected.
>
>at the end of the mover I would like to know which items are newly added to the right side and which items have been moved back to the unselected side. (the purpose of all this ulimately is to add and remove records in a child cursor based on these choices. )
>
>I can kludge my way through this with a lot of inelegant approaches but I was hoping some wizard of arrays knows an easy trick that would be an elegant solution.
>
>My orginal thought is to keep a copy of both arrays before the mover changes them, and to compare the modified arrays with the original arrays - and here is where the elegant approach escapes me.
>
>?
>
>
>TIA
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform