Ask a Question

Class in C# Script

spesas
Not applicable

Class in C# Script

<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<meta content="Word.Document" name="ProgId" />
<meta content="Microsoft Word 12" name="Generator" />
<meta content="Microsoft Word 12" name="Originator" />





Hi,



We have recently moved to C# script language from VBscript in TestComplete 8. I
am trying to create a class in C# and its throwing error  "error 100 syntax error while processing class"


public class testobject


{


 }


Thanks in Advance,


2 REPLIES 2
karkadil
Valued Contributor

C#Script language in TestComplete has nothing common with C# language.



C#Script is JScript with a different syntax (see help topic "Writing C# Scripts" in TC help system).
YMinaev
Staff

Hi,



You can use classes in C#Script, but you should create them by using JScript's mechanisms. See here.
------
Yuri
TestComplete Customer Care Engineer

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
cancel
Showing results for 
Search instead for 
Did you mean: