If your function has parameters, then the function name will not appear in the function list if the open parentheses is not on the same line as the function name.
eg.
Function Log
( [string]$text )
{
#wont publish function log
}
Function Log (
[string]$text )
{
#will publish function log
}
I'm running the latest powershell studio 2017. I did also notice this in 2016 and earlier also.
Function requires open ( to appear
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.
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.
Re: Function requires open ( to appear
Thank you for reporting the issue.
This is probably a holdover from the V2 days, where it had to be on the same line. The issue will be resolved in the next service release.
This is probably a holdover from the V2 days, where it had to be on the same line. The issue will be resolved in the next service release.
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.