more G-Labs products

Author Topic: Remove Program.Parameters?  (Read 2151 times)

September 29, 2014, 11:31:15 PM
Read 2151 times

flybob

  • *
  • Information
  • Newbie
  • Posts: 15
I have this very simple problem, the parameters i used when developing my program simply wont go away!

What can i do to prevent the widget to display all program parameters that it has?

I tried setting Program.Parameter("Blabla").Value = null; but that really doesnt do it, i need to remove the entire Parameter. Dispose(), Remove() and Delete() have been tried but im not very familliar with C#.

Help?

September 30, 2014, 04:09:47 PM
Reply #1

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
There may be a more elegant solution, but I edited the modules.xlm file and deleted those parameters I didn't want.

September 30, 2014, 10:31:17 PM
Reply #2

flybob

  • *
  • Information
  • Newbie
  • Posts: 15
So did I and it worked... but yes, rather ugly.

How am I supposed to do it the correct way?

October 07, 2014, 06:03:08 AM
Reply #3

haitch

  • Guest
It does not look like such a helper method is available.  I guess editing the modules.xml file is the only method as of now.

October 07, 2014, 10:03:35 AM
Reply #4

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
See attacched screenshots.

Cheers,
g.

October 07, 2014, 11:26:48 AM
Reply #5

kebob

  • *
  • Information
  • Newbie
  • Posts: 2
Is there a similar method for adding them Gene?

I'm new around here and trying to get to grips with things, and at one point I've read "add custom param blah blah" But the only way I've can figure it out is via source files?