Cannot Call-Mainform_psf - Multiform

Ask your PowerShell-related questions, including questions on cmdlet development!
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.
This topic is 5 years and 11 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.
Locked
User avatar
joshcollins@westfieldgrp.com
Posts: 1
Last visit: Mon Mar 21, 2022 4:35 am

Cannot Call-Mainform_psf - Multiform

Post by joshcollins@westfieldgrp.com »

I have a tool I am building that is multi-form and it needs variables from the Mainform. I have followed the direction on this site to add a call back to the mainform. However, it does not recognize the command Call- as being a known command.
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: Cannot Call-Mainform_psf - Multiform

Post by davidc »

Use the Show verb instead of Call verb. It was updated to use an approved verb to comply with PowerShell best practices.
David
SAPIEN Technologies, Inc.
This topic is 5 years and 11 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.
Locked