madExcept EXE location

Using FinalBuilder 4.1.0.199

I know that I can set the madExcept EXE location from the Tools | Options | Compilers | MadExcept page. That works great.

But I’m building two different products that use different versions of MadExcept and I want to change which EXE I use based on the build. I’m betting that there’s a GetOptionsObject(“madExcept”) (or something like it) that I can manipulate properties on. What would the values be in this particular case?

In general - for other actions with option objects - how can I tell what the name of the Options Object and how do I get a list of the property names? I found that some of the object options are declared as global objects and appear when you do code-insight dropdown - but some seem to be missing (although I did find MadExcept). I’m hoping that once I get to the property names, the explanantion will be obvious (cross fingers). I found a list of some objects and properties in “Accessing the Options settings via scripting”, but it seemed to be a far from a complete list. Is there a text file or help file that I can snoop around in?

Thanks,
Jason Swager

Hi Jason,

This is the code for MadExcept to change the location:

dim opt
opt = GetOptionsObject(“MadExcept”)
opt.MadExceptLocation = "c:\new path…"

Basically, you should let the code completion engine guide you. And if it doesn’t, then it’s something we need to fix :slight_smile:
So, for example, on the 3rd line typing opt. you should get a list of the available properties of the MadExcept options object. You might be a little out of date with your version too if you don’t see it, the latest FB4 build is:
https://www.finalbuilder.com/downloads/finalbuilder/420/FB420_299.exe

cheers,
.t8

Yep - that works just fine. Thanks!