WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

OLE COM ADO CDO ADSI LDAP
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

IsObject UDF


Question:

I was looking for some sample code to tell if the full version of Adobe was installed, and stumbled on this line of code in VB:

If IsObject(CreateObject("AcroIEHelper.AcroIEHlprObj")) Then IsAdobeInstalled = True

Is there an 'IsObject' type command in Winbatch?

- The above code doesn't do what I want.. still searching!

Answer:

NOTE This Code assumes 2004C+

;UNDEBUGGED
;Must be a #Subroutine

#DefineSubRoutine IsObject(PossibleObject)
 PossibleObjectType=VarType(PossibleObject)
 If (PossibleObjectType & 1536) != 1536 Then Return(@FALSE)
 If PossibleObject==0 Then Return(@FALSE)
 Return(@TRUE)
#EndSubRoutine

Article ID:   W16556
File Created: 2005:02:18:12:21:26
Last Updated: 2005:02:18:12:21:26