xInfo.copy(Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Copies lines from the Infolog buffer.
public:
virtual cli::array <System::Object ^> ^ copy(int _from, int _to);
public virtual object[] copy (int _from, int _to);
abstract member copy : int * int -> obj[]
override this.copy : int * int -> obj[]
Public Overridable Function copy (_from As Integer, _to As Integer) As Object()
Parameters
- _from
- Int32
The last line to copy.
- _to
- Int32
The last line to copy.
Returns
Object[]
Container that contains the Infolog lines between from and to.
Remarks
The following example uses the copy method to copy the content of the Infolog into a log.
boolean validateRecord()
{
boolean ok = true;
ok = intrastat.validateRecord();
if (ok)
intrastat.log = '';
else
{
intrastat.log = Info::infoCon2Str(
infolog.copy(infoLogCounter+1,infolog.num()));
infoLogCounter = infolog.num();
errorFound = true;
}
intrastat.update();
return ok;
}