Forum Discussion
3 Replies
Sort By
- YMinaevStaffHi Viktor,
Can you post here your function's declaration (just its name with parameters) and let us know which of them should be Null? - ViktorUvpvNew ContributorHello, thanks for reply!
CompareStrings (string str1, string str2, ICompareOptionsProvider options)
I have to pass null in the parameter "options"
the call in C# looks like
CompareStrings(srtVar1, strVar2, null).
In the TestComplete script I have wrote the function call like thisCompareStrings(dotNET.System.String.Copy(gSQLEditor.Text), dotNET.System.String.Copy(ScriptEtalon), null)
But as I have read in the JScript reference, null keyword represents a structure that cannot be converted implicitly.
Please help!!! - YMinaevStaffHi Viktor,
You need to find a method (in your application or in some assembly) which returns Null and use this method's return value. This seems to be the only way to get the .NET Null value in scripts. For example, you can implement a method which will return Null in your application's main form class and, after that, use this method in scripts.
Related Content
- 7 years agoNisHera
- 5 years agoFrits
- 6 months agomacheshmeh
Recent Discussions
- 3 days agovladd1