Forum Discussion
You project is set up for JScript as it's scripting language and you're trying to add a C++ script.
Test complete will not let you mix and match.
This was the issue. Thanks very much for pointing this out.
- ringraham9 years agoContributor
After doing some more research, I found that all of my scripts are C# scripts. I can see the language (C# in all cases) for my scripts in the editor's status bar. What I cannot figure out is, if my project is setup for JScript, why did it let me create all of these C# scripts? From what I have read, there is no way to change the project's script type, but why does it let you do this in the first place?
Unless anyone else has another suggestion, it looks like I will have to create a new project and copy my scripts there.
Thanks all for the help.
- ringraham9 years agoContributor
Well, the plot thickens. I thought the earlier response (that I accepted) was right as I did note it was a JScript project and the scripts were all C#. However, after attempting to fix this, I come to find out that there is no C# project.
Using the "Create a New Project" wizard, I started off to create a project specifically for my C# scripts. However, the last screen, which is the one where you pick your scripting language, only shows {{VBScript}, {JScript}, {DelphiScript}, {ConnectedApps Script}}. If you look at the info provided for a JScript project, it specifically says, and I quote, "Java like scripting syntax (similar to the C++ and C# syntax). OK, so it says "similar". But I don't see an option for C# scripts. So what should I use? And more importantly, how can I go about including scripts from other projects into my current project!?
I'm getting a little frustrated with trying to do something that seems like it should be pretty simple, but appears to actually be difficult to do. Any other suggestions would be greatly appreciated.
Thanks.
-Ron