Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Array manipulation
Message
From
27/08/2003 15:34:48
 
 
To
27/08/2003 15:26:00
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00823913
Message ID:
00823917
Views:
24
Have you tried adding two more fields to your array? when an item has been moved in whatever direction, you simply put a marker in the slot. As an example
Dimension achoices[x*4], aselected[x*4]

** if item is moved from left to right - from achoices to aselected
aselected[i,3] = '*'

** if item is moved from right to left
achoices[i,4] = '*'

if item has both 'slots' marked then it went from one side to the other

It's just a thought


>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
"You don't manage people. You manage things - people you lead" Adm. Grace Hopper
Pflugerville, between a Rock and a Weird Place
Previous
Reply
Map
View

Click here to load this message in the networking platform