Delphi: How do I use your components in IntraWeb?

You can create a local instance of the component.

Date Entered: 03/17/2008    Last Updated: 03/17/2008

Instead of dropping the component on the form, you can create a local instance of the component within a procedure. You may also bind events from within the procedure. For instance:

uses ServerController, ipwcore, ipwhttp;

procedure TIWForm1.IWButton1Click(Sender: TObject);
var
http1: TipwHTTP;
begin

http1 := TipwHTTP.Create(WebApplication);
http1.FOnStatus := Status;
http1.Get('http://www.google.com');

WebApplication.ShowMessage(http1.TransferredData);

http1.Free;
end;

procedure TIWForm1.Status(Sender: TObject; const HTTPVersion: String;
 StatusCode: Integer; const Description: String);
begin
//Do something here
end;

We appreciate your feedback.  If you have any questions, comments, or suggestions about this entry please contact our support team at kb@nsoftware.com.