Subscribe to forum RSS Forum

Suggestion

New Topic Post Reply

Page: 1

Author Post
Member
Registered: Sep 2007
Posts: 19
Hi Guys,

I would give you a suggestion about Si.Dispatch method. Actually it's work only with memory protocol but if there isn't memory protocol in connections it's raise an exception.

Could be useful to have a metod like
QueryDispatch(const ACaption: WideString; const AAction: Integer; const AState: TObject): Boolean;

that check if you can dispatch to a particular Caption.

In this case I could always put a dispatch in the main window closing routine (fox example) and decide via sic file to enable or not memory protocol.

Regards
Ing Giuseppe Monteleone
Administrator
Registered: Sep 2007
Posts: 133
Hello Giuseppe,

Thanks for the suggestion. Such a method would indeed be useful and we will consider it for a future release. However, you can safely ignore the exception and wrap it in a try .. except block without any consequences. The method just raises an exception to signal that no such connection exist and ignoring the exception would be fine in this case.

New Topic Post Reply

Page: 1