| Prev | Next
Menu: Products - Portfolio - Services - Download - Order - Company

 
Topic #1.1.1.1.
ASync Part II
   Introduction  
   Overview  
   New Classes  
   TwhAsyncAction  
   OnExecute  
   OnInit  
   OnFinish  
   OnDestroy  
   ExecuteDosCmd  
   Status Variables  
   ASync Download  
*

  

Browsing >>OnInit

procedure TdmAsyncDemo.ThreadInit(Sender: TObject);
begin
  //create and initialize the object's extra data-packet.
  if assigned(Sender)
  and (Sender is TwhAsyncObject) then
  with pWebApp, TwhAsyncObject(Sender) do begin
    Data:=TThreadInput.Create;
    TThreadInput(Data).DosCmd:=Expand(waAsyncAction.HtmlParam);

    if BoolVar['AsUnHook'] then begin
      SetAsyncState(asStarted);
      TThreadInput(Data).Takeover(Response);
      end;

    //might just set the resultstring here and ignore the data object!
    ResultString:='';
    end;
end;


 
Path:  www.href.com to; Services to; Tech Talk Archive to; ASync Part II to; OnInit

Copyright © 1995-2012 HREF Tools Corp. All Rights Reserved Worldwide.
Running: WebHub-v2.167 compiled with d16_win32 on Microsoft-IIS/7.5,
Local Time: Wed, 23 May 2012 22:45:06.
Session 452429792, 46 pages sent to CCBot/1.0 (+http://www.commoncrawl.org/bot.html) at 38.107.179.228;
Time to produce this page: 0msec.