I might be working soon for a company that uses TC as a tool. I recently saw TC and learned how to use it and I can say that it is an excellent tool. Really complete.
As TC provides different scripting languages I am a bit unsure if I should choose VBScript or C# script. Personally I do have good skills with C# programming. I also don't mind VB. However, I like to choose the C# scripting. Except, I had never heard of C# scripting before. I can see that this is based on a project on CodeProject.
Now VBScript has been there for a while so we don't see any unexpected issues with it.
I like to know your thoughts on the C# script. For example:
1) Is the syntax exactly the same as C# programming language?
2) Is the C# Script stable and are we sure we won't come across anything unexpected?
3) Is C# script as complete as C# programming or is it a cut down version of it?
4) Any limitations, pitfalls, anything that you would consider important in choosing as the scripting language for automation?
I appreciate your thoughts and sharing your experience.
Re: C# Script
C#Script has nothing to do with C#. It is JScript whose default method call notation was modified - JScript supports both obj.method() and obj["method"](), and C#Script is JScript in which the second one is forced on recording by default. It is needed to create C# connected applications (applications which contain TC's scripts inside) since there's no way to override the '.' operator.
Also, in general, all scripting languages have equal functionality, and we recommend choosing the one whose syntax you find the most familiar/comfortable. I recommend that you see the "Supported Scripting Languages - Specifics of Usage" help topic.
Re: C# Script
They should have called it J# Script, unless that is taken. [img]/images/graemlins/smile.gif[/img]
Thank you for your clarification. I think I will stick with VBScript. Also thank you for the link. I did have problems trying to instantiate a class from a different unit. This gives me the solution on how to do that.