Search found 4954 matches

by davidc
Tue Nov 21, 2017 3:20 pm
Forum: PowerShell Studio
Topic: Cross-File Class Support
Replies: 2
Views: 63

Re: Cross-File Class Support

Modify your using statement as follows:

Code: Select all

Using Module ".\exampleClass.PSM1"
by davidc
Tue Nov 21, 2017 3:13 pm
Forum: PowerShell Studio
Topic: issue arose with the errorprovider
Replies: 6
Views: 115

Re: issue arose with the errorprovider

Set a breakpoint on the line where the error provider is called and run the debugger (F5). If it freezes before that line, then it is the Regular Expression. If it freezes after Stepping (F10) then it is the ErrorProvider.
by davidc
Tue Nov 21, 2017 2:30 pm
Forum: PowerShell Studio
Topic: issue arose with the errorprovider
Replies: 6
Views: 115

Re: issue arose with the errorprovider

After debugging the script, I found that the regular expression is causing the lock up. You might consider using a different method to validate the path.

In regards to STA Mode:

https://www.sapien.com/blog/2015/03/09/ ... -sta-mode/
by davidc
Tue Nov 21, 2017 9:10 am
Forum: PowerShell Studio
Topic: issue arose with the errorprovider
Replies: 6
Views: 115

Re: issue arose with the errorprovider

Can you attach the psf file to this topic?

Also check that you are running the script in STA mode. Some controls are dependent on this setting to work.
STA Mode.png
STA Mode.png (14.82 KiB) Viewed 78 times
by davidc
Mon Nov 20, 2017 9:41 am
Forum: Installation Issues
Topic: PrimalformsCE.exe
Replies: 2
Views: 97

Re: PrimalformsCE.exe

Unfortunately, PrimalForms CE in no longer available. The designer was severely outdated and limited. It was eventually replaced by PowerShell Studio.
by davidc
Mon Nov 20, 2017 9:36 am
Forum: PowerShell Studio
Topic: Undo not working in designer for form items that were moved
Replies: 1
Views: 83

Re: Undo not working in designer for form items that were moved

If you can, please upload the form and include the necessary steps to reproduce this issue in the notes:

https://www.sapien.com/support/upload

This way we can try to reproduce the issue on our end.
by davidc
Fri Nov 17, 2017 11:52 am
Forum: PowerShell Studio
Topic: Build & Run Uses old code
Replies: 2
Views: 55

Re: Build & Run Uses old code

Thank you for the update. I will pass along the request to the dev team.
by davidc
Thu Nov 16, 2017 3:07 pm
Forum: PrimalScript
Topic: build not covered....
Replies: 1
Views: 240

Re: build not covered....

You can download the latest build you are eligible for from SAPIEN.com->My Account->Registered Products: https://www.sapien.com/account/products You will need to uninstall the current build, before installing an older build. Note: The product never installs an update automatically. The user must man...
by davidc
Wed Nov 15, 2017 3:20 pm
Forum: Windows PowerShell
Topic: Extract variables and functions out of PS Studio in order to share?
Replies: 1
Views: 149

Re: Extract variables and functions out of PS Studio in order to share?

I moved this topic to the Windows PowerShell forum so the community can contribute and provide best practices advise. Typically, a module is a good way to go when you have to share a code base. As for creating the module, PowerShell Studio makes it easy with the New Module from Functions feature: ht...
by davidc
Tue Nov 14, 2017 12:39 pm
Forum: PowerShell Studio
Topic: Run as not working - Error the directory name is invalid
Replies: 1
Views: 104

Re: Run as not working - Error the directory name is invalid

Impersonate and RunAs behave differently. Impersonate user runs the application under the current user with privileges of the specified user. RunAs runs the application as specified user, which means all environments folders will point to the RunAs user's path. So if you start the application is a u...