This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM. Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 9 years and 8 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
In PowerShell Studio 4.1.62, when I hit Format Script, it hoses several foreach statements in my code. Is there something I'm doing wrong?
What should look like this:
$erc_xml.configuration.InstanceConfigurationData.InstanceConfiguration.add | foreach { If ($_.AdfsWhr -eq $Identifier)
...
Ends up like this:
$erc_xml.configuration.InstanceConfigurationData.InstanceConfiguration.add | foreach
{
If ($_.AdfsWhr -eq $Identifier)
{...
By putting the command for the foreach on the next line, foreach won't work correctly. I had to go through and fix a bunch of these after being bit by it today. Is there something I can do to avoid this?
This topic is 9 years and 8 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.