Donald,
>>I'm not sure if it's even safe to launch MessageBox() from the server.
>
>Really? Why?
Maybe it's just one of those things, I don't have any hard fact thing saying you should/shouldn't do it. One problem though is your server goes modal at that point. I'm not sure it can respond to anything else, while that MessageBox is waiting to have it's ok button clicked. Most realtime systems like the server I'm doing now can't have that happen.
>I think you may be right here. It is unfortunate though. The last thing I want to do is test for an error every other line.
ummm it doesn't seem to me that try/catch/throw coding in C++ or Delphi is any easier to handle error conditions than an IF test in VFP. There aren't really that many places in the VFP code where you have to worry about external failures that can give your code problems.
>What I ended up doing was using 'try...except' handler in Delphi. Like this. It actually works pretty well.
>
>
try
> // Call the Method
> //
> s := oDataDll.GetARDataByDate(StartDate,EndDate);
> except
> // Method was canceled
> //
> on E: Exception do
> begin
> ShowMessage('An error occurred!');
> exit;
> end;
> end;
>
>If the method in the server gets CANCELled, the 'on E' code fires and I probably can write some code that explains a bit more about what had happened.
>
>This has been an experience. Thanks to all you guys for all your help.