Partilhar via


SYS(2333) - ActiveX Dual Interface Support

Enables or disables ActiveX dual interface (VTABLE binding) support.

SYS(2333 [, 0 | 1 | 2])

Return Values

Character

Parameters

  • 0
    Disables ActiveX dual interface support. If 0 or 1 is omitted, ActiveX dual interface support is disabled. 0 is the startup default for Visual FoxPro 6.0 or later.
  • 1
    Enables ActiveX dual interface support. 1 is the startup default for Visual FoxPro 5.0.
  • 2
    Returns the current SYS(2333) setting (0 or 1).

Remarks

The ActiveX control dual interface (VTABLE binding) is an optimization supported by Visual FoxPro. If an ActiveX control doesn't use the dual interface, you can disable the optimization while using that control.

If an ActiveX control does not perform properly when the control is instantiated, issue SYS(2333) or SYS(2333, 0) before the control is instantiated to disable dual interface support for the control. After the control has been instantiated, issue SYS(2333, 1) to enable ActiveX dual interface support for any controls that are later instantiated.

See Also

ActiveX Controls Overview. | OLE Container Control | Early (vtable) and Late (IDispatch) Binding