CreateContext Example

The following program code demonstrates the use of the CreateContext method:

procedure TForm1.Button1Click(Sender: TObject);
begin
  RPCBroker1.Connected := True;
  if RPCBroker1.CreateContext('MY APPLICATION') then
    Label1.Caption := 'Context MY APPLICATION was successfully created.'
  else
    Label1.Caption := 'Context MY APPLICATION could not be created.';
end;