Partager via


SETOLEOBJECT( ) Function

Specifies the OLE class that calls to FOXDOCMD( ) and FOXEVAL( ) create.

nSuccess = SetOleObject(cOLEClass)

Return Values

Integer

Remarks

Returns 0 if the class was specified successfully; -1 otherwise.

Specify your application in SETOLEOBJECT( ) to allow Automation from applications that don't natively support Automation.

Example

DECLARE integer SETOLEOBJECT in (MYDLL) string 
=SetOleObject("visualfoxpro.application")

See Also

Fpole.dll | Fpole.dll Examples | CLOSEIT( ) | GETLASTERR( ) | FOXDOCMD( ) | FOXEVAL( ) | SETERRMODE( )