Nonexistent button object in export code

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.
User avatar
johncchampion
Posts: 6
Last visit: Mon Aug 16, 2021 11:51 pm
Has voted: 1 time

Nonexistent button object in export code

Post by johncchampion »

Product: PowerShell Studio 2021 (64 Bit)
Build: v5.8.191
OS: Windows 10 Pro (64 Bit)
Build: v10.0.19042.0
PowerShell version(s): PowerShell Core v7.1

I seem to have a button object that does not exist on the form (that I can find) and I'd like to delete it somehow. It shows up in the Properties dropdown and the exported code ($buttonButton2) but the actual button is no where to be found in the Designer and there are no references to it in the script view.

Is there a method to remove the object reference when it doesn't show up in the Designer/form or the script code?
buttonButton2.jpg
buttonButton2.jpg (32.03 KiB) Viewed 6345 times
by brittneyr » Wed Jun 23, 2021 7:25 am
From the Toolbox pane, select the Selection Tab:
SPS_ToolBox-Select.png
It should display a list of all the objects in the form.
Select the object, right-click and select delete.
Go to full post

User avatar
brittneyr
Site Admin
Posts: 899
Last visit: Thu Oct 28, 2021 9:21 am
Answers: 20
Been upvoted: 17 times

Re: Nonexistent button object in export code

Post by brittneyr »

From the Toolbox pane, select the Selection Tab:
SPS_ToolBox-Select.png
SPS_ToolBox-Select.png (30.23 KiB) Viewed 6307 times
It should display a list of all the objects in the form.
Select the object, right-click and select delete.
Brittney Ryn
SAPIEN Technologies, Inc.

User avatar
johncchampion
Posts: 6
Last visit: Mon Aug 16, 2021 11:51 pm
Has voted: 1 time

Re: Nonexistent button object in export code

Post by johncchampion »

Awesome - worked - thanks! Figured there had to be a way :)