Delphi: How do I use your components in IntraWeb?
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 article please contact our support team at support@nsoftware.com.