Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Array manipulation
Message
From
27/08/2003 15:26:00
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Array manipulation
Miscellaneous
Thread ID:
00823913
Message ID:
00823913
Views:
71
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


Charles Hankey

Though a good deal is too strange to be believed, nothing is too strange to have happened.
- Thomas Hardy

Half the harm that is done in this world is due to people who want to feel important. They don't mean to do harm-- but the harm does not interest them. Or they do not see it, or they justify it because they are absorbed in the endless struggle to think well of themselves.

-- T. S. Eliot
Democracy is two wolves and a sheep voting on what to have for lunch.
Liberty is a well-armed sheep contesting the vote.
- Ben Franklin

Pardon him, Theodotus. He is a barbarian, and thinks that the customs of his tribe and island are the laws of nature.
Next
Reply
Map
View

Click here to load this message in the networking platform