AdsSyncSetTimeout
Delphi 5 Programm
unit frmAdsSyncSetTimeoutUnit;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, TcAdsDef, TcAdsApi, Buttons, ExtCtrls;
type
TfrmAdsSyncSetTimeout = class(TForm)
Label1: TLabel;
BitBtn1: TBitBtn;
Bevel1: TBevel;
editTimeout: TEdit;
Label2: TLabel;
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private-Deklarationen }
serverAddr : TAmsAddr;
public
{ Public-Deklarationen }
procedure InitData( destAddr : TAmsAddr );
end;
implementation
{$R *.DFM}
////////////////////////////////////////////////////////////////
procedure TfrmAdsSyncSetTimeout.InitData( destAddr : TAmsAddr );
begin
serverAddr := destAddr;
end;
////////////////////////////////////////////////////////////////
procedure TfrmAdsSyncSetTimeout.Button1Click(Sender: TObject);
var result : longint;
begin
result := AdsSyncSetTimeout(StrToInt(editTimeout.Text));
Label1.Caption := Format( 'AdsSyncSetTimeout() result: %d [0x%x]', [result,result] );
end;
end.
Dokumente hierzu