Thanks for the help, Robert! This is definitely the fix. But I can't quite wrap my brain around this. I keep trying to impose standard class/object syntax to this, which is not quite what we're doing. Plus, the VBScript is hard for me to keep track of. I understand that we are manipulating the TestComplete interface to a generic class that we can customize.
According to your code snippet, global.ChangeExcelState() would call the global.Excel methods, right? And then I would write a global.Excel.Cells() method, right?
Ok, I'll start with the Description file. This is what I have:
<Script Name="_global_methods.js" InitRoutine="Initialize">
<RuntimeObject Name="global">
<Method Name = "excel_state" Routine = "excel">
<Description>
Generic method to open and close Excel.
</Description>
</Method>
<Property Name="excel" Routine="excel" GetRoutine="get" SetRoutine"set">
excel property description.
</Property>
<Description>
Generic global class for methods used by all projects.
</Description>
</RuntimeObject>
</Script>
I guess what's confusing me is that you would normally instantiate an object of the class, which makes it easy to identify what to manipulate. What is the TestComplete/JScript equivalent to this?