Something like get-variable for array elements
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Re: Something like get-variable for array elements
The last post show how to get an object and output the value of a property of the object. That is what "to read the value of an item inside a PSObject" means when speaking about compouters, objects and programming.
Re: Something like get-variable for array elements
Objects do not have names. Objects have properties. Properties have values which are other objects.I want to use a value stored on a variable to form the name of the object to retrieve.
Part of what is getting in your way is that you do not understand PowerShell or objects. If you take time to read the free book I posted this will become clear.
Re: Something like get-variable for array elements
I'm glad to read it.
I know isn't something that we might use a lot, but on my specific case, I didn't finish yet replacing things, but it will save me a few hundreds lines of code.
I know isn't something that we might use a lot, but on my specific case, I didn't finish yet replacing things, but it will save me a few hundreds lines of code.
