Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread Default session events
Mon, Feb 27 2012 7:06 AMPermanent Link

Geir Bratlie

Hi!

Is there a way to use or override the default sessions events in a program, like "session. OnRemoteTimeout"

How do I do that?

I would also like to say thank you for an amazing product.

Kind regards,
Geir Bratlie
Mon, Feb 27 2012 8:28 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Geir


You can drop a session component on the form and use that as with any Delphi component. If you don't want to do that then open a blank form, drop a session component on it and double click the events to create them. That will give you a template eg

procedure TForm1.DBISAMSession1RemoteTimeout(Sender: TObject;
 var StayConnected: Boolean);
begin

end;

Put that (and the code you want in it) into your app, add it to the forms type declaration (above private) and you can then assign the event to the default session at run time eg

session.OnRemoteTimeout := RemoteTimeout;

I'd recommend dropping the session component onto the form - its easier in the long run

Roy Lambert [Team Elevate]
Mon, Feb 27 2012 10:39 AMPermanent Link

Geir Bratlie

Thank you!
Image