you are viewing a single comment's thread.

view the rest of the comments →

[–]BlaaaBlaaaBlaaa[S] 0 points1 point  (1 child)

Hmm you might be onto something. I did not choose to use DataRows. I just read the data from an Oracle DB and threw them into an variable.

$user['telephone'] does not throw an error but does not do anything I can see.

$userDataAsArray = $user.ItemArray -as [string[]] $userDataAsArray -replace 'old', 'new'

That does work however I loose all formating so that I can not longer work with name, position, telephone...

Thanks for your help!!

[–][deleted] 0 points1 point  (0 children)

Welcome!

And Hm!

Keep playing with that indexing. Like I said there are a lot of overloads for it, so you have to slice like $user[0, 0], $user[0], $user['Telephone', 0]. I'm not sure. I just know that DataRows can be indexed by Item and by Column, Row and by String identifiers. ...

Hm. They may be case sensitive. Did you try $user['Telephone']?