In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

Checking whether Advantage Server is Running

Foro público de Xailer en español
Mike Draper
Mensajes: 41
Registrado: Vie Jul 01, 2005 11:59 pm

Checking whether Advantage Server is Running

Mensaje por Mike Draper »

I have been trying to get this to work (and whining about it) for a few
days.
Here is the solution I came up with to have a program use the Advantage
Remote server if available and Local server if not:
adssetservertype(ADS_REMOTE_SERVER)
try
use somefile new shared
close somefile
catch err
adssetservertype(ADS_LOCAL_SERVER)
end
As an old timer I tend to forget about TRY/CATCH.
Thanks for all of the help along the way.
Mike Draper
Responder