troubleshooting Question

Collection for a GUI that can be operated on

Avatar of k41d3n
k41d3n asked on
9 Comments1 Solution208 ViewsLast Modified:
I'm looking on some advice, perhaps a point in the right direction.

I want to be able to have a window pop up for the user that allows them to add IP addresses to a collection.

Once the IP's are in the collection, then they should be able to check a box to make it an active IP.

What is the best way to go about doing this?

I'd like it to remember their settings for the next time they open the application.

So I am guessing the collection should have:

ip, active

But this method also has to allow expansion in the future in the event that I want to add more data items.

They also need to be able to remove the IP's as well.

What would be an optimal method?

I could create an object for each ip, then add the object to a hash. Operating on single ip's would be a pain though as I would have to iterate through the whole hash just to edit or remove the single object.

Suggestions welcome.

Thanks in advance.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 9 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros