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
Subscribe to forum
Forum
Suggestion
Page: 1
| Author | Post |
|---|---|
|
#1 Mon Nov 19, 2007 11:34 am
|
|
|
Member
Registered: Sep 2007
Posts: 19
|
|
|
#2 Tue Nov 20, 2007 11:49 pm
|
|
|
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. |
Page: 1