SetURL

<< Click to Display Table of Contents >>

Navigation:  Classes > TIWAppForm > Methods >

SetURL

Use this class procedure to set a relative ULR and HTML document to be mapped to the IW form. Same as URL Mapping.

 

SIGNATURE=IWAppForm.TIWAppForm.SetURL@string@string

 

ETYPE=Method

 

Declaration:

Delphi:

public class procedure SetURL(const aPath: string; const aDocument: string);

C++:

void public: __fastcall SetURL(const String aPath, const String aDocument);

 

Description: This is SetURL, a member of class TIWAppForm.

 

The sample code below maps "/green.html" to the TGreenForm, ie, when the user access /green.html the TGreenForm is shown.

 

type

 TGreenForm = class(TIWAppForm)

   IWLabel1: TIWLabel;

 public

 end;

 

implementation

{$R *.dfm}

 

initialization

 TGreenForm.SetURL('/', 'green.html');

 

end.