> Dear Experts,
>
> How can we know that a certain ActiveX / COM DLL is installed / registered in the pc.
>
> I want to make sure that ActiveX is registered before executing the following code:
>
>
APPEND GENERAL pobc CLASS ("idauto.barcode")
>
> Thanks
>
> Akram
You could try creating it in a TRY/CATCH
TRY
loTest=CREATEOBJECT("idauto.barcode")
llRegistered=.T.
CATCH
llRegistered=.F.
ENDTRY
IF not llRegistered
.....
ENDIF
It is generally advised not to use general fields. But since I don't know what idauto.barcode does, it is not possible to comment if a general field is the best way to go about it or not. If possible, try to find an alternative to the general field, otherwise always perform the above test before using it.
Regards
Tushar