You can wrap the line of code that fails into TRY...CATCH.
>
>Is there any way to determine whether the outlook on a machine is configured or not? The machine where i want to check this does not have VFP installed..!!
>
>I am creating an outlook application object by olk = CREATEOBJECT("Outlook.application"). when i check the current username, i get an error because outlook is not configured on that machine.
--sb--