Yuval S.
Tel Aviv,
Jul 29, 2020
10
Posts
Re: Question about : "Knowledge Base Article # Q200215"
Thanks that worked,
but now after i started to run it, i got this error message:
Run-time error #420 : 'Object method or property 'MyClass' failed: Could not load file or assembly 'System.Runtime, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.' found in 'Call_Method1' in line 3
Run-time error #419 : 'Object is null' found in 'Call_Method1' in line 9
The c# script :
using System;
using System.Collections.Generic;
using System.Text;
namespace ArrayTest
{
public class MyClass
{
static void Main()
{
}
//PURPOSE: Sets the specified values iMin and iMax to the specified ATest object pExtObject
public void ATEasyTestSetMinMax(ref Object pExtObject, int iMin, int iMax)
{
AteRtLib.ATest ATEasyObject = (AteRtLib.ATest)pExtObject;
ATEasyObject.Min = iMin;
ATEasyObject.Max = iMax;
}
//PURPOSE: Gets the value of the TestsCount property from the specified ATask object pExtObject and returns it in the reference parameter iTestCount.
public void ATEasyTaskGetTestCount(ref Object pExtObject, ref int iTestCount)
{
AteRtLib.ATask ATEasyObject = (AteRtLib.ATask)pExtObject;
iTestCount = ATEasyObject.TestsCount;
}
//PURPOSE: Executes the specified ALog object pExtObject's Clear() method.
public void ATEasyLogClear(ref Object pExtObject)
{
AteCtlLib.ALog ATEasyObject = (AteCtlLib.ALog)pExtObject;
ATEasyObject.Clear();
}
}
}
File Attachment:
Untitled.jpg