OnDump Event
UP ]

 

Description

This event is fired when the operation started with the method Dump is completed.

Syntax

HCS121.OnDump (StartAddress as Integer; datarray as OleVariant)

Part Description
StartAddress Address of the first byte returned in the array.
datarray Array of data.

Remarks

This is an extract of a procedure written using Delphi, which show how to get data from the array passed like the second argument of the method:

procedure TForm1.Hcs121Dump(Sender: TObject; StartAddress: Integer; data: OleVariant);
type
    PByte = ^Byte;
var
    P: Pointer;
    pData : PByte;
begin
    P := VarArrayLock(data);
    pData := PByte(P);
    VarArrayUnlock(data);
    //from here use the pointer to the data array P as you prefer
    …………..
    …………..
end;
 

If you have a question or suggestion please contact me. Updated: 03.19.2003
Copyright (c) 2003-2004 J.Gorgas. All rights reserved. All trademarks mentioned are the property of their respective owners.